/*! For license information please see upsetjs.js.LICENSE.txt */
!function(){var t={2818:function(){"undefined"!=typeof Element&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}))},347:function(t,e){var n,r,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}i=function(t){"use strict";function e(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function n(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function r(t){return Math.sqrt(n(t,t))}function o(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function i(t,e,n,r,o){for(var i=0;i<t.length;++i)t[i]=e*n[i]+r*o[i]}function a(t,e,r,o,a,c,s){var l=r.fx,u=n(r.fxprime,e),f=l,d=l,h=u,p=0;function y(d,p,y){for(var m=0;m<16;++m)if(a=(d+p)/2,i(o.x,1,r.x,a,e),f=o.fx=t(o.x,o.fxprime),h=n(o.fxprime,e),f>l+c*a*u||f>=y)p=a;else{if(Math.abs(h)<=-s*u)return a;h*(p-d)>=0&&(p=d),d=a,y=f}return 0}a=a||1,c=c||1e-6,s=s||.1;for(var m=0;m<10;++m){if(i(o.x,1,r.x,a,e),f=o.fx=t(o.x,o.fxprime),h=n(o.fxprime,e),f>l+c*a*u||m&&f>=d)return y(p,a,d);if(Math.abs(h)<=-s*u)return a;if(h>=0)return y(a,p,f);d=f,p=a,a*=2}return a}t.bisect=function(t,e,n,r){var o=(r=r||{}).maxIterations||100,i=r.tolerance||1e-10,a=t(e),c=t(n),s=n-e;if(a*c>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===c)return n;for(var l=0;l<o;++l){var u=e+(s/=2),f=t(u);if(f*a>=0&&(e=u),Math.abs(s)<i||0===f)return u}return e+s},t.nelderMead=function(t,e,n){var r,o=(n=n||{}).maxIterations||200*e.length,a=n.nonZeroDelta||1.05,c=n.zeroDelta||.001,s=n.minErrorDelta||1e-6,l=n.minErrorDelta||1e-5,u=void 0!==n.rho?n.rho:1,f=void 0!==n.chi?n.chi:2,d=void 0!==n.psi?n.psi:-.5,h=void 0!==n.sigma?n.sigma:.5,p=e.length,y=new Array(p+1);y[0]=e,y[0].fx=t(e),y[0].id=0;for(var m=0;m<p;++m){var v=e.slice();v[m]=v[m]?v[m]*a:c,y[m+1]=v,y[m+1].fx=t(v),y[m+1].id=m+1}function g(t){for(var e=0;e<t.length;e++)y[p][e]=t[e];y[p].fx=t.fx}for(var x=function(t,e){return t.fx-e.fx},b=e.slice(),_=e.slice(),w=e.slice(),S=e.slice(),E=0;E<o;++E){if(y.sort(x),n.history){var M=y.map((function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e}));M.sort((function(t,e){return t.id-e.id})),n.history.push({x:y[0].slice(),fx:y[0].fx,simplex:M})}for(r=0,m=0;m<p;++m)r=Math.max(r,Math.abs(y[0][m]-y[1][m]));if(Math.abs(y[0].fx-y[p].fx)<s&&r<l)break;for(m=0;m<p;++m){b[m]=0;for(var k=0;k<p;++k)b[m]+=y[k][m];b[m]/=p}var N=y[p];if(i(_,1+u,b,-u,N),_.fx=t(_),_.fx<y[0].fx)i(S,1+f,b,-f,N),S.fx=t(S),S.fx<_.fx?g(S):g(_);else if(_.fx>=y[p-1].fx){var A=!1;if(_.fx>N.fx?(i(w,1+d,b,-d,N),w.fx=t(w),w.fx<N.fx?g(w):A=!0):(i(w,1-d*u,b,d*u,N),w.fx=t(w),w.fx<_.fx?g(w):A=!0),A){if(h>=1)break;for(m=1;m<y.length;++m)i(y[m],1-h,y[0],h,y[m]),y[m].fx=t(y[m])}}else g(_)}return y.sort(x),{fx:y[0].fx,x:y[0]}},t.conjugateGradient=function(t,e,c){var s,l,u,f={x:e.slice(),fx:0,fxprime:e.slice()},d={x:e.slice(),fx:0,fxprime:e.slice()},h=e.slice(),p=1;u=(c=c||{}).maxIterations||20*e.length,f.fx=t(f.x,f.fxprime),o(s=f.fxprime.slice(),f.fxprime,-1);for(var y=0;y<u;++y){if(p=a(t,s,f,d,p),c.history&&c.history.push({x:f.x.slice(),fx:f.fx,fxprime:f.fxprime.slice(),alpha:p}),p){i(h,1,d.fxprime,-1,f.fxprime);var m=n(f.fxprime,f.fxprime);i(s,Math.max(0,n(h,d.fxprime)/m),s,-1,d.fxprime),l=f,f=d,d=l}else o(s,f.fxprime,-1);if(r(f.fxprime)<=1e-5)break}return c.history&&c.history.push({x:f.x.slice(),fx:f.fx,fxprime:f.fxprime.slice(),alpha:p}),f},t.gradientDescent=function(t,e,n){for(var o=(n=n||{}).maxIterations||100*e.length,a=n.learnRate||.001,c={x:e.slice(),fx:0,fxprime:e.slice()},s=0;s<o&&(c.fx=t(c.x,c.fxprime),n.history&&n.history.push({x:c.x.slice(),fx:c.fx,fxprime:c.fxprime.slice()}),i(c.x,1,c.x,-a,c.fxprime),!(r(c.fxprime)<=1e-5));++s);return c},t.gradientDescentLineSearch=function(t,e,n){n=n||{};var i,c={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},l=n.maxIterations||100*e.length,u=n.learnRate||1,f=e.slice(),d=n.c1||.001,h=n.c2||.1,p=[];if(n.history){var y=t;t=function(t,e){return p.push(t.slice()),y(t,e)}}c.fx=t(c.x,c.fxprime);for(var m=0;m<l&&(o(f,c.fxprime,-1),u=a(t,f,c,s,u,d,h),n.history&&(n.history.push({x:c.x.slice(),fx:c.fx,fxprime:c.fxprime.slice(),functionCalls:p,learnRate:u,alpha:u}),p=[]),i=c,c=s,s=i,!(0===u||r(c.fxprime)<1e-5));++m);return c},t.zeros=e,t.zerosM=function(t,n){return e(t).map((function(){return e(n)}))},t.norm2=r,t.weightedSum=i,t.scale=o},"object"===a(e)?i(e):(r=[e],void 0===(o="function"==typeof(n=i)?n.apply(e,r):n)||(t.exports=o))},7383:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=function(t){"use strict";var e,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===y){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=k(a,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=f(t,e,n);if("normal"===s.type){if(r=n.done?y:h,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=y,n.method="throw",n.arg=s.arg)}}}(t,n,a),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var d="suspendedStart",h="suspendedYield",p="executing",y="completed",m={};function v(){}function g(){}function x(){}var b={};l(b,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(C([])));w&&w!==n&&o.call(w,a)&&(b=w);var S=x.prototype=v.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){function n(i,a,c,s){var l=f(t[i],t,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"===r(d)&&o.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):e.resolve(d).then((function(t){u.value=t,c(u)}),(function(t){return n("throw",t,c,s)}))}s(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function k(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:L}}function L(){return{value:e,done:!0}}return g.prototype=x,l(S,"constructor",x),l(x,"constructor",g),g.displayName=l(x,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},E(M.prototype),l(M.prototype,c,(function(){return this})),t.AsyncIterator=M,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new M(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,s,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}("object"===r(t=n.nmd(t))?t.exports:{});try{regeneratorRuntime=o}catch(t){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},3205:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},9672:function(t,e,n){var r=n(8722)("unscopables"),o=Array.prototype;null==o[r]&&n(4761)(o,r,{}),t.exports=function(t){o[r][t]=!0}},918:function(t,e,n){"use strict";var r=n(8075)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},1404:function(t){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},2199:function(t,e,n){var r=n(1222);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},8209:function(t,e,n){"use strict";var r=n(8083),o=n(7818),i=n(7998);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),c=o(t,a),s=o(e,a),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?a:o(l,a))-s,a-c),f=1;for(s<c&&c<s+u&&(f=-1,s+=u-1,c+=u-1);u-- >0;)s in n?n[c]=n[s]:delete n[c],c+=f,s+=f;return n}},7257:function(t,e,n){"use strict";var r=n(8083),o=n(7818),i=n(7998);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,c=o(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,l=void 0===s?n:o(s,n);l>c;)e[c++]=t;return e}},2e3:function(t,e,n){var r=n(5683),o=n(7998),i=n(7818);t.exports=function(t){return function(e,n,a){var c,s=r(e),l=o(s.length),u=i(a,l);if(t&&n!=n){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}}},5145:function(t,e,n){var r=n(8061),o=n(8643),i=n(8083),a=n(7998),c=n(8610);t.exports=function(t,e){var n=1==t,s=2==t,l=3==t,u=4==t,f=6==t,d=5==t||f,h=e||c;return function(e,c,p){for(var y,m,v=i(e),g=o(v),x=r(c,p,3),b=a(g.length),_=0,w=n?h(e,b):s?h(e,0):void 0;b>_;_++)if((d||_ in g)&&(m=x(y=g[_],_,v),t))if(n)w[_]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return _;case 2:w.push(y)}else if(u)return!1;return f?-1:l||u?u:w}}},5458:function(t,e,n){var r=n(1222),o=n(1106),i=n(8722)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},8610:function(t,e,n){var r=n(5458);t.exports=function(t,e){return new(r(t))(e)}},8623:function(t,e,n){"use strict";var r=n(3205),o=n(1222),i=n(2269),a=[].slice,c={},s=function(t,e,n){if(!(e in c)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";c[e]=Function("F,a","return new F("+r.join(",")+")")}return c[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),c=function r(){var o=n.concat(a.call(arguments));return this instanceof r?s(e,o.length,o):i(e,o,t)};return o(e.prototype)&&(c.prototype=e.prototype),c}},9520:function(t,e,n){var r=n(513),o=n(8722)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},513:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},5305:function(t,e,n){"use strict";var r=n(3702).f,o=n(4339),i=n(3066),a=n(8061),c=n(1404),s=n(2706),l=n(1531),u=n(989),f=n(4812),d=n(6475),h=n(993).fastKey,p=n(9268),y=d?"_s":"size",m=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,r){c(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[y]=0,null!=r&&s(r,n,t[l],t)}));return i(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var n=p(this,e),r=m(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[y]--}return!!r},forEach:function(t){p(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(p(this,e),t)}}),d&&r(u.prototype,"size",{get:function(){return p(this,e)[y]}}),u},def:function(t,e,n){var r,o,i=m(t,e);return i?i.v=n:(t._l=i={i:o=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[y]++,"F"!==o&&(t._i[o]=i)),t},getEntry:m,setStrong:function(t,e,n){l(t,e,(function(t,n){this._t=p(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?u(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,u(1))}),n?"entries":"values",!n,!0),f(e)}}},1047:function(t,e,n){"use strict";var r=n(3066),o=n(993).getWeak,i=n(2199),a=n(1222),c=n(1404),s=n(2706),l=n(5145),u=n(9570),f=n(9268),d=l(5),h=l(6),p=0,y=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return d(t.a,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var l=t((function(t,r){c(t,l,e,"_i"),t._t=e,t._i=p++,t._l=void 0,null!=r&&s(r,n,t[i],t)}));return r(l.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?y(f(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?y(f(this,e)).has(t):n&&u(n,this._i)}}),l},def:function(t,e,n){var r=o(i(e),!0);return!0===r?y(t).set(e,n):r[t._i]=n,t},ufstore:y}},4858:function(t,e,n){"use strict";var r=n(6887),o=n(8324),i=n(1838),a=n(3066),c=n(993),s=n(2706),l=n(1404),u=n(1222),f=n(4937),d=n(3370),h=n(1135),p=n(6257);t.exports=function(t,e,n,y,m,v){var g=r[t],x=g,b=m?"set":"add",_=x&&x.prototype,w={},S=function(t){var e=_[t];i(_,t,"delete"==t||"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof x&&(v||_.forEach&&!f((function(){(new x).entries().next()})))){var E=new x,M=E[b](v?{}:-0,1)!=E,k=f((function(){E.has(1)})),N=d((function(t){new x(t)})),A=!v&&f((function(){for(var t=new x,e=5;e--;)t[b](e,e);return!t.has(-0)}));N||((x=e((function(e,n){l(e,x,t);var r=p(new g,e,x);return null!=n&&s(n,m,r[b],r),r}))).prototype=_,_.constructor=x),(k||A)&&(S("delete"),S("has"),m&&S("get")),(A||M)&&S(b),v&&_.clear&&delete _.clear}else x=y.getConstructor(e,t,m,b),a(x.prototype,n),c.NEED=!0;return h(x,t),w[t]=x,o(o.G+o.W+o.F*(x!=g),w),v||y.setStrong(x,t,m),x}},7266:function(t){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},1597:function(t,e,n){"use strict";var r=n(3702),o=n(913);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},8061:function(t,e,n){var r=n(3205);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},8494:function(t,e,n){"use strict";var r=n(2199),o=n(3262),i="number";t.exports=function(t){if("string"!==t&&t!==i&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),t!=i)}},7968:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},6475:function(t,e,n){t.exports=!n(4937)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},2700:function(t,e,n){var r=n(1222),o=n(6887).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},2699:function(t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9965:function(t,e,n){var r=n(812),o=n(2077),i=n(3882);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,c=n(t),s=i.f,l=0;c.length>l;)s.call(t,a=c[l++])&&e.push(a);return e}},8324:function(t,e,n){var r=n(6887),o=n(7266),i=n(4761),a=n(1838),c=n(8061),s=function t(e,n,s){var l,u,f,d,h=e&t.F,p=e&t.G,y=e&t.P,m=e&t.B,v=p?r:e&t.S?r[n]||(r[n]={}):(r[n]||{}).prototype,g=p?o:o[n]||(o[n]={}),x=g.prototype||(g.prototype={});for(l in p&&(s=n),s)f=((u=!h&&v&&void 0!==v[l])?v:s)[l],d=m&&u?c(f,r):y&&"function"==typeof f?c(Function.call,f):f,v&&a(v,l,f,e&t.U),g[l]!=f&&i(g,l,d),y&&x[l]!=f&&(x[l]=f)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},7724:function(t,e,n){var r=n(8722)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},4937:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6776:function(t,e,n){"use strict";n(5011);var r=n(1838),o=n(4761),i=n(4937),a=n(7968),c=n(8722),s=n(2998),l=c("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=c(t),h=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=h?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!e})):void 0;if(!h||!p||"replace"===t&&!u||"split"===t&&!f){var y=/./[d],m=n(a,d,""[t],(function(t,e,n,r,o){return e.exec===s?h&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=m[0],g=m[1];r(String.prototype,t,v),o(RegExp.prototype,d,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},2053:function(t,e,n){"use strict";var r=n(2199);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},3099:function(t,e,n){"use strict";var r=n(1106),o=n(1222),i=n(7998),a=n(8061),c=n(8722)("isConcatSpreadable");t.exports=function t(e,n,s,l,u,f,d,h){for(var p,y,m=u,v=0,g=!!d&&a(d,h,3);v<l;){if(v in s){if(p=g?g(s[v],v,n):s[v],y=!1,o(p)&&(y=void 0!==(y=p[c])?!!y:r(p)),y&&f>0)m=t(e,n,p,i(p.length),m,f-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=p}m++}v++}return m}},2706:function(t,e,n){var r=n(8061),o=n(4267),i=n(1639),a=n(2199),c=n(7998),s=n(8914),l={},u={},f=t.exports=function(t,e,n,f,d){var h,p,y,m,v=d?function(){return t}:s(t),g=r(n,f,e?2:1),x=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(i(v)){for(h=c(t.length);h>x;x++)if((m=e?g(a(p=t[x])[0],p[1]):g(t[x]))===l||m===u)return m}else for(y=v.call(t);!(p=y.next()).done;)if((m=o(y,g,p.value,e))===l||m===u)return m};f.BREAK=l,f.RETURN=u},4021:function(t,e,n){t.exports=n(9237)("native-function-to-string",Function.toString)},6887:function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},9570:function(t){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},4761:function(t,e,n){var r=n(3702),o=n(913);t.exports=n(6475)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},8385:function(t,e,n){var r=n(6887).document;t.exports=r&&r.documentElement},9094:function(t,e,n){t.exports=!n(6475)&&!n(4937)((function(){return 7!=Object.defineProperty(n(2700)("div"),"a",{get:function(){return 7}}).a}))},6257:function(t,e,n){var r=n(1222),o=n(2463).set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},2269:function(t){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},8643:function(t,e,n){var r=n(513);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},1639:function(t,e,n){var r=n(8417),o=n(8722)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},1106:function(t,e,n){var r=n(513);t.exports=Array.isArray||function(t){return"Array"==r(t)}},9803:function(t,e,n){var r=n(1222),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},1222:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports=function(t){return"object"===e(t)?null!==t:"function"==typeof t}},8776:function(t,e,n){var r=n(1222),o=n(513),i=n(8722)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},4267:function(t,e,n){var r=n(2199);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},8111:function(t,e,n){"use strict";var r=n(4339),o=n(913),i=n(1135),a={};n(4761)(a,n(8722)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},1531:function(t,e,n){"use strict";var r=n(5190),o=n(8324),i=n(1838),a=n(4761),c=n(8417),s=n(8111),l=n(1135),u=n(1378),f=n(8722)("iterator"),d=!([].keys&&"next"in[].keys()),h="keys",p="values",y=function(){return this};t.exports=function(t,e,n,m,v,g,x){s(n,e,m);var b,_,w,S=function(t){if(!d&&t in N)return N[t];switch(t){case h:case p:return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",M=v==p,k=!1,N=t.prototype,A=N[f]||N["@@iterator"]||v&&N[v],O=A||S(v),C=v?M?S("entries"):O:void 0,L="Array"==e&&N.entries||A;if(L&&(w=u(L.call(new t)))!==Object.prototype&&w.next&&(l(w,E,!0),r||"function"==typeof w[f]||a(w,f,y)),M&&A&&A.name!==p&&(k=!0,O=function(){return A.call(this)}),r&&!x||!d&&!k&&N[f]||a(N,f,O),c[e]=O,c[E]=y,v)if(b={values:M?O:S(p),keys:g?O:S(h),entries:C},x)for(_ in b)_ in N||i(N,_,b[_]);else o(o.P+o.F*(d||k),e,b);return b}},3370:function(t,e,n){var r=n(8722)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},989:function(t){t.exports=function(t,e){return{value:e,done:!!t}}},8417:function(t){t.exports={}},5190:function(t){t.exports=!1},782:function(t){var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},3998:function(t,e,n){var r=n(2856),o=Math.pow,i=o(2,-52),a=o(2,-23),c=o(2,127)*(2-a),s=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),l=r(t);return o<s?l*(o/s/a+1/i-1/i)*s*a:(n=(e=(1+a/i)*o)-(e-o))>c||n!=n?l*(1/0):l*n}},7773:function(t){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},2856:function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},993:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(7378)("meta"),i=n(1222),a=n(9570),c=n(3702).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(4937)((function(){return l(Object.preventExtensions({}))})),f=function(t){c(t,o,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==r(t)?t:("string"==typeof t?"S":"P")+t;if(!a(t,o)){if(!l(t))return"F";if(!e)return"E";f(t)}return t[o].i},getWeak:function(t,e){if(!a(t,o)){if(!l(t))return!0;if(!e)return!1;f(t)}return t[o].w},onFreeze:function(t){return u&&d.NEED&&l(t)&&!a(t,o)&&f(t),t}}},5038:function(t,e,n){var r=n(6887),o=n(566).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,c=r.Promise,s="process"==n(513)(a);t.exports=function(){var t,e,n,l=function(){var r,o;for(s&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(l)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var u=c.resolve(void 0);n=function(){u.then(l)}}else n=function(){o.call(r,l)};else{var f=!0,d=document.createTextNode("");new i(l).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},8978:function(t,e,n){"use strict";var r=n(3205);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},4335:function(t,e,n){"use strict";var r=n(6475),o=n(812),i=n(2077),a=n(3882),c=n(8083),s=n(8643),l=Object.assign;t.exports=!l||n(4937)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r}))?function(t,e){for(var n=c(t),l=arguments.length,u=1,f=i.f,d=a.f;l>u;)for(var h,p=s(arguments[u++]),y=f?o(p).concat(f(p)):o(p),m=y.length,v=0;m>v;)h=y[v++],r&&!d.call(p,h)||(n[h]=p[h]);return n}:l},4339:function(t,e,n){var r=n(2199),o=n(1745),i=n(2699),a=n(1983)("IE_PROTO"),c=function(){},s=function(){var t,e=n(2700)("iframe"),r=i.length;for(e.style.display="none",n(8385).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[a]=t):n=s(),void 0===e?n:o(n,e)}},3702:function(t,e,n){var r=n(2199),o=n(9094),i=n(3262),a=Object.defineProperty;e.f=n(6475)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},1745:function(t,e,n){var r=n(3702),o=n(2199),i=n(812);t.exports=n(6475)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),c=a.length,s=0;c>s;)r.f(t,n=a[s++],e[n]);return t}},5024:function(t,e,n){"use strict";t.exports=n(5190)||!n(4937)((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete n(6887)[t]}))},4234:function(t,e,n){var r=n(3882),o=n(913),i=n(5683),a=n(3262),c=n(9570),s=n(9094),l=Object.getOwnPropertyDescriptor;e.f=n(6475)?l:function(t,e){if(t=i(t),e=a(e,!0),s)try{return l(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},6414:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(5683),i=n(2790).f,a={}.toString,c="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"[object Window]"==a.call(t)?function(t){try{return i(t)}catch(t){return c.slice()}}(t):i(o(t))}},2790:function(t,e,n){var r=n(8801),o=n(2699).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2077:function(t,e){e.f=Object.getOwnPropertySymbols},1378:function(t,e,n){var r=n(9570),o=n(8083),i=n(1983)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},8801:function(t,e,n){var r=n(9570),o=n(5683),i=n(2e3)(!1),a=n(1983)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),s=0,l=[];for(n in c)n!=a&&r(c,n)&&l.push(n);for(;e.length>s;)r(c,n=e[s++])&&(~i(l,n)||l.push(n));return l}},812:function(t,e,n){var r=n(8801),o=n(2699);t.exports=Object.keys||function(t){return r(t,o)}},3882:function(t,e){e.f={}.propertyIsEnumerable},7500:function(t,e,n){var r=n(8324),o=n(7266),i=n(4937);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},7011:function(t,e,n){var r=n(6475),o=n(812),i=n(5683),a=n(3882).f;t.exports=function(t){return function(e){for(var n,c=i(e),s=o(c),l=s.length,u=0,f=[];l>u;)n=s[u++],r&&!a.call(c,n)||f.push(t?[n,c[n]]:c[n]);return f}}},6352:function(t,e,n){var r=n(2790),o=n(2077),i=n(2199),a=n(6887).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},4571:function(t,e,n){var r=n(6887).parseFloat,o=n(8421).trim;t.exports=1/r(n(3454)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},5585:function(t,e,n){var r=n(6887).parseInt,o=n(8421).trim,i=n(3454),a=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},8831:function(t){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},5414:function(t,e,n){var r=n(2199),o=n(1222),i=n(8978);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},913:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},3066:function(t,e,n){var r=n(1838);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},1838:function(t,e,n){var r=n(6887),o=n(4761),i=n(9570),a=n(7378)("src"),c=n(4021),s="toString",l=(""+c).split(s);n(7266).inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[a]||c.call(this)}))},9102:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(9520),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!==r(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==o(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},2998:function(t,e,n){"use strict";var r,o,i=n(2053),a=RegExp.prototype.exec,c=String.prototype.replace,s=a,l=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(s=function(t){var e,n,r,o,s=this;return u&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),l&&(e=s.lastIndex),r=a.call(s,t),l&&r&&(s.lastIndex=s.global?r.index+r[0].length:e),u&&r&&r.length>1&&c.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=s},1697:function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},2463:function(t,e,n){var r=n(1222),o=n(2199),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(8061)(Function.call,n(4234).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},4812:function(t,e,n){"use strict";var r=n(6887),o=n(3702),i=n(6475),a=n(8722)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},1135:function(t,e,n){var r=n(3702).f,o=n(9570),i=n(8722)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},1983:function(t,e,n){var r=n(9237)("keys"),o=n(7378);t.exports=function(t){return r[t]||(r[t]=o(t))}},9237:function(t,e,n){var r=n(7266),o=n(6887),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(5190)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},1986:function(t,e,n){var r=n(2199),o=n(3205),i=n(8722)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},3442:function(t,e,n){"use strict";var r=n(4937);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},8075:function(t,e,n){var r=n(3003),o=n(7968);t.exports=function(t){return function(e,n){var i,a,c=String(o(e)),s=r(n),l=c.length;return s<0||s>=l?t?"":void 0:(i=c.charCodeAt(s))<55296||i>56319||s+1===l||(a=c.charCodeAt(s+1))<56320||a>57343?t?c.charAt(s):i:t?c.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},316:function(t,e,n){var r=n(8776),o=n(7968);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},9070:function(t,e,n){var r=n(8324),o=n(4937),i=n(7968),a=/"/g,c=function(t,e,n,r){var o=String(i(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),c+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(c),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},3817:function(t,e,n){var r=n(7998),o=n(3841),i=n(7968);t.exports=function(t,e,n,a){var c=String(i(t)),s=c.length,l=void 0===n?" ":String(n),u=r(e);if(u<=s||""==l)return c;var f=u-s,d=o.call(l,Math.ceil(f/l.length));return d.length>f&&(d=d.slice(0,f)),a?d+c:c+d}},3841:function(t,e,n){"use strict";var r=n(3003),o=n(7968);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},8421:function(t,e,n){var r=n(8324),o=n(7968),i=n(4937),a=n(3454),c="["+a+"]",s=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),u=function(t,e,n){var o={},c=i((function(){return!!a[t]()||"​"!="​"[t]()})),s=o[t]=c?e(f):a[t];n&&(o[n]=s),r(r.P+r.F*c,"String",o)},f=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(l,"")),t};t.exports=u},3454:function(t){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},566:function(t,e,n){var r,o,i,a=n(8061),c=n(2269),s=n(8385),l=n(2700),u=n(6887),f=u.process,d=u.setImmediate,h=u.clearImmediate,p=u.MessageChannel,y=u.Dispatch,m=0,v={},g=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},x=function(t){g.call(t.data)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){c("function"==typeof t?t:Function(t),e)},r(m),m},h=function(t){delete v[t]},"process"==n(513)(f)?r=function(t){f.nextTick(a(g,t,1))}:y&&y.now?r=function(t){y.now(a(g,t,1))}:p?(i=(o=new p).port2,o.port1.onmessage=x,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",x,!1)):r="onreadystatechange"in l("script")?function(t){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:d,clear:h}},7818:function(t,e,n){var r=n(3003),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},966:function(t,e,n){var r=n(3003),o=n(7998);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},3003:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},5683:function(t,e,n){var r=n(8643),o=n(7968);t.exports=function(t){return r(o(t))}},7998:function(t,e,n){var r=n(3003),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},8083:function(t,e,n){var r=n(7968);t.exports=function(t){return Object(r(t))}},3262:function(t,e,n){var r=n(1222);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3252:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}if(n(6475)){var o=n(5190),i=n(6887),a=n(4937),c=n(8324),s=n(1379),l=n(6895),u=n(8061),f=n(1404),d=n(913),h=n(4761),p=n(3066),y=n(3003),m=n(7998),v=n(966),g=n(7818),x=n(3262),b=n(9570),_=n(9520),w=n(1222),S=n(8083),E=n(1639),M=n(4339),k=n(1378),N=n(2790).f,A=n(8914),O=n(7378),C=n(8722),L=n(5145),I=n(2e3),j=n(1986),P=n(5773),T=n(8417),F=n(3370),z=n(4812),R=n(7257),q=n(8209),B=n(3702),H=n(4234),W=B.f,U=H.f,D=i.RangeError,K=i.TypeError,V=i.Uint8Array,G="ArrayBuffer",$="SharedArrayBuffer",Y="BYTES_PER_ELEMENT",Q=Array.prototype,J=l.ArrayBuffer,X=l.DataView,Z=L(0),tt=L(2),et=L(3),nt=L(4),rt=L(5),ot=L(6),it=I(!0),at=I(!1),ct=P.values,st=P.keys,lt=P.entries,ut=Q.lastIndexOf,ft=Q.reduce,dt=Q.reduceRight,ht=Q.join,pt=Q.sort,yt=Q.slice,mt=Q.toString,vt=Q.toLocaleString,gt=C("iterator"),xt=C("toStringTag"),bt=O("typed_constructor"),_t=O("def_constructor"),wt=s.CONSTR,St=s.TYPED,Et=s.VIEW,Mt="Wrong length!",kt=L(1,(function(t,e){return Lt(j(t,t[_t]),e)})),Nt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),At=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),Ot=function(t,e){var n=y(t);if(n<0||n%e)throw D("Wrong offset!");return n},Ct=function(t){if(w(t)&&St in t)return t;throw K(t+" is not a typed array!")},Lt=function(t,e){if(!w(t)||!(bt in t))throw K("It is not a typed array constructor!");return new t(e)},It=function(t,e){return jt(j(t,t[_t]),e)},jt=function(t,e){for(var n=0,r=e.length,o=Lt(t,r);r>n;)o[n]=e[n++];return o},Pt=function(t,e,n){W(t,e,{get:function(){return this._d[n]}})},Tt=function(t){var e,n,r,o,i,a,c=S(t),s=arguments.length,l=s>1?arguments[1]:void 0,f=void 0!==l,d=A(c);if(null!=d&&!E(d)){for(a=d.call(c),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);c=r}for(f&&s>2&&(l=u(l,arguments[2],2)),e=0,n=m(c.length),o=Lt(this,n);n>e;e++)o[e]=f?l(c[e],e):c[e];return o},Ft=function(){for(var t=0,e=arguments.length,n=Lt(this,e);e>t;)n[t]=arguments[t++];return n},zt=!!V&&a((function(){vt.call(new V(1))})),Rt=function(){return vt.apply(zt?yt.call(Ct(this)):Ct(this),arguments)},qt={copyWithin:function(t,e){return q.call(Ct(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(Ct(this),arguments)},filter:function(t){return It(this,tt(Ct(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(Ct(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Ct(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(Ct(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return it(Ct(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ht.apply(Ct(this),arguments)},lastIndexOf:function(t){return ut.apply(Ct(this),arguments)},map:function(t){return kt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ft.apply(Ct(this),arguments)},reduceRight:function(t){return dt.apply(Ct(this),arguments)},reverse:function(){for(var t,e=this,n=Ct(e).length,r=Math.floor(n/2),o=0;o<r;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return et(Ct(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Ct(this),t)},subarray:function(t,e){var n=Ct(this),r=n.length,o=g(t,r);return new(j(n,n[_t]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===e?r:g(e,r))-o))}},Bt=function(t,e){return It(this,yt.call(Ct(this),t,e))},Ht=function(t){Ct(this);var e=Ot(arguments[1],1),n=this.length,r=S(t),o=m(r.length),i=0;if(o+e>n)throw D(Mt);for(;i<o;)this[e+i]=r[i++]},Wt={entries:function(){return lt.call(Ct(this))},keys:function(){return st.call(Ct(this))},values:function(){return ct.call(Ct(this))}},Ut=function(t,e){return w(t)&&t[St]&&"symbol"!=r(e)&&e in t&&String(+e)==String(e)},Dt=function(t,e){return Ut(t,e=x(e,!0))?d(2,t[e]):U(t,e)},Kt=function(t,e,n){return!(Ut(t,e=x(e,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?W(t,e,n):(t[e]=n.value,t)};wt||(H.f=Dt,B.f=Kt),c(c.S+c.F*!wt,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:Kt}),a((function(){mt.call({})}))&&(mt=vt=function(){return ht.call(this)});var Vt=p({},qt);p(Vt,Wt),h(Vt,gt,Wt.values),p(Vt,{slice:Bt,set:Ht,constructor:function(){},toString:mt,toLocaleString:Rt}),Pt(Vt,"buffer","b"),Pt(Vt,"byteOffset","o"),Pt(Vt,"byteLength","l"),Pt(Vt,"length","e"),W(Vt,xt,{get:function(){return this[St]}}),t.exports=function(t,e,n,r){var l=t+((r=!!r)?"Clamped":"")+"Array",u="get"+t,d="set"+t,p=i[l],y=p||{},g=p&&k(p),x=!p||!s.ABV,b={},S=p&&p.prototype,E=function(t,n){W(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[u](n*e+r.o,Nt)}(this,n)},set:function(t){return function(t,n,o){var i=t._d;r&&(o=(o=Math.round(o))<0?0:o>255?255:255&o),i.v[d](n*e+i.o,o,Nt)}(this,n,t)},enumerable:!0})};x?(p=n((function(t,n,r,o){f(t,p,l,"_d");var i,a,c,s,u=0,d=0;if(w(n)){if(!(n instanceof J||(s=_(n))==G||s==$))return St in n?jt(p,n):Tt.call(p,n);i=n,d=Ot(r,e);var y=n.byteLength;if(void 0===o){if(y%e)throw D(Mt);if((a=y-d)<0)throw D(Mt)}else if((a=m(o)*e)+d>y)throw D(Mt);c=a/e}else c=v(n),i=new J(a=c*e);for(h(t,"_d",{b:i,o:d,l:a,e:c,v:new X(i)});u<c;)E(t,u++)})),S=p.prototype=M(Vt),h(S,"constructor",p)):a((function(){p(1)}))&&a((function(){new p(-1)}))&&F((function(t){new p,new p(null),new p(1.5),new p(t)}),!0)||(p=n((function(t,n,r,o){var i;return f(t,p,l),w(n)?n instanceof J||(i=_(n))==G||i==$?void 0!==o?new y(n,Ot(r,e),o):void 0!==r?new y(n,Ot(r,e)):new y(n):St in n?jt(p,n):Tt.call(p,n):new y(v(n))})),Z(g!==Function.prototype?N(y).concat(N(g)):N(y),(function(t){t in p||h(p,t,y[t])})),p.prototype=S,o||(S.constructor=p));var A=S[gt],O=!!A&&("values"==A.name||null==A.name),C=Wt.values;h(p,bt,!0),h(S,St,l),h(S,Et,!0),h(S,_t,p),(r?new p(1)[xt]==l:xt in S)||W(S,xt,{get:function(){return l}}),b[l]=p,c(c.G+c.W+c.F*(p!=y),b),c(c.S,l,{BYTES_PER_ELEMENT:e}),c(c.S+c.F*a((function(){y.of.call(p,1)})),l,{from:Tt,of:Ft}),Y in S||h(S,Y,e),c(c.P,l,qt),z(l),c(c.P+c.F*At,l,{set:Ht}),c(c.P+c.F*!O,l,Wt),o||S.toString==mt||(S.toString=mt),c(c.P+c.F*a((function(){new p(1).slice()})),l,{slice:Bt}),c(c.P+c.F*(a((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),l,{toLocaleString:Rt}),T[l]=O?A:C,o||O||h(S,gt,C)}}else t.exports=function(){}},6895:function(t,e,n){"use strict";var r=n(6887),o=n(6475),i=n(5190),a=n(1379),c=n(4761),s=n(3066),l=n(4937),u=n(1404),f=n(3003),d=n(7998),h=n(966),p=n(2790).f,y=n(3702).f,m=n(7257),v=n(1135),g="ArrayBuffer",x="DataView",b="Wrong index!",_=r.ArrayBuffer,w=r.DataView,S=r.Math,E=r.RangeError,M=r.Infinity,k=_,N=S.abs,A=S.pow,O=S.floor,C=S.log,L=S.LN2,I="buffer",j="byteLength",P="byteOffset",T=o?"_b":I,F=o?"_l":j,z=o?"_o":P;function R(t,e,n){var r,o,i,a=new Array(n),c=8*n-e-1,s=(1<<c)-1,l=s>>1,u=23===e?A(2,-24)-A(2,-77):0,f=0,d=t<0||0===t&&1/t<0?1:0;for((t=N(t))!=t||t===M?(o=t!=t?1:0,r=s):(r=O(C(t)/L),t*(i=A(2,-r))<1&&(r--,i*=2),(t+=r+l>=1?u/i:u*A(2,1-l))*i>=2&&(r++,i/=2),r+l>=s?(o=0,r=s):r+l>=1?(o=(t*i-1)*A(2,e),r+=l):(o=t*A(2,l-1)*A(2,e),r=0));e>=8;a[f++]=255&o,o/=256,e-=8);for(r=r<<e|o,c+=e;c>0;a[f++]=255&r,r/=256,c-=8);return a[--f]|=128*d,a}function q(t,e,n){var r,o=8*n-e-1,i=(1<<o)-1,a=i>>1,c=o-7,s=n-1,l=t[s--],u=127&l;for(l>>=7;c>0;u=256*u+t[s],s--,c-=8);for(r=u&(1<<-c)-1,u>>=-c,c+=e;c>0;r=256*r+t[s],s--,c-=8);if(0===u)u=1-a;else{if(u===i)return r?NaN:l?-M:M;r+=A(2,e),u-=a}return(l?-1:1)*r*A(2,u-e)}function B(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function H(t){return[255&t]}function W(t){return[255&t,t>>8&255]}function U(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function D(t){return R(t,52,8)}function K(t){return R(t,23,4)}function V(t,e,n){y(t.prototype,e,{get:function(){return this[n]}})}function G(t,e,n,r){var o=h(+n);if(o+e>t[F])throw E(b);var i=t[T]._b,a=o+t[z],c=i.slice(a,a+e);return r?c:c.reverse()}function $(t,e,n,r,o,i){var a=h(+n);if(a+e>t[F])throw E(b);for(var c=t[T]._b,s=a+t[z],l=r(+o),u=0;u<e;u++)c[s+u]=l[i?u:e-u-1]}if(a.ABV){if(!l((function(){_(1)}))||!l((function(){new _(-1)}))||l((function(){return new _,new _(1.5),new _(NaN),_.name!=g}))){for(var Y,Q=(_=function(t){return u(this,_),new k(h(t))}).prototype=k.prototype,J=p(k),X=0;J.length>X;)(Y=J[X++])in _||c(_,Y,k[Y]);i||(Q.constructor=_)}var Z=new w(new _(2)),tt=w.prototype.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||s(w.prototype,{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else _=function(t){u(this,_,g);var e=h(t);this._b=m.call(new Array(e),0),this[F]=e},w=function(t,e,n){u(this,w,x),u(t,_,x);var r=t[F],o=f(e);if(o<0||o>r)throw E("Wrong offset!");if(o+(n=void 0===n?r-o:d(n))>r)throw E("Wrong length!");this[T]=t,this[z]=o,this[F]=n},o&&(V(_,j,"_l"),V(w,I,"_b"),V(w,j,"_l"),V(w,P,"_o")),s(w.prototype,{getInt8:function(t){return G(this,1,t)[0]<<24>>24},getUint8:function(t){return G(this,1,t)[0]},getInt16:function(t){var e=G(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=G(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return B(G(this,4,t,arguments[1]))},getUint32:function(t){return B(G(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return q(G(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return q(G(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){$(this,1,t,H,e)},setUint8:function(t,e){$(this,1,t,H,e)},setInt16:function(t,e){$(this,2,t,W,e,arguments[2])},setUint16:function(t,e){$(this,2,t,W,e,arguments[2])},setInt32:function(t,e){$(this,4,t,U,e,arguments[2])},setUint32:function(t,e){$(this,4,t,U,e,arguments[2])},setFloat32:function(t,e){$(this,4,t,K,e,arguments[2])},setFloat64:function(t,e){$(this,8,t,D,e,arguments[2])}});v(_,g),v(w,x),c(w.prototype,a.VIEW,!0),e.ArrayBuffer=_,e.DataView=w},1379:function(t,e,n){for(var r,o=n(6887),i=n(4761),a=n(7378),c=a("typed_array"),s=a("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[d[f++]])?(i(r.prototype,c,!0),i(r.prototype,s,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:c,VIEW:s}},7378:function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},246:function(t,e,n){var r=n(6887).navigator;t.exports=r&&r.userAgent||""},9268:function(t,e,n){var r=n(1222);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},8273:function(t,e,n){var r=n(6887),o=n(7266),i=n(5190),a=n(7592),c=n(3702).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:a.f(t)})}},7592:function(t,e,n){e.f=n(8722)},8722:function(t,e,n){var r=n(9237)("wks"),o=n(7378),i=n(6887).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},8914:function(t,e,n){var r=n(9520),o=n(8722)("iterator"),i=n(8417);t.exports=n(7266).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},7441:function(t,e,n){var r=n(8324);r(r.P,"Array",{copyWithin:n(8209)}),n(9672)("copyWithin")},1675:function(t,e,n){var r=n(8324);r(r.P,"Array",{fill:n(7257)}),n(9672)("fill")},6486:function(t,e,n){"use strict";var r=n(8324),o=n(5145)(2);r(r.P+r.F*!n(3442)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},6619:function(t,e,n){"use strict";var r=n(8324),o=n(5145)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(9672)(i)},6518:function(t,e,n){"use strict";var r=n(8324),o=n(5145)(5),i="find",a=!0;i in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(9672)(i)},941:function(t,e,n){"use strict";var r=n(8061),o=n(8324),i=n(8083),a=n(4267),c=n(1639),s=n(7998),l=n(1597),u=n(8914);o(o.S+o.F*!n(3370)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,d=i(t),h="function"==typeof this?this:Array,p=arguments.length,y=p>1?arguments[1]:void 0,m=void 0!==y,v=0,g=u(d);if(m&&(y=r(y,p>2?arguments[2]:void 0,2)),null==g||h==Array&&c(g))for(n=new h(e=s(d.length));e>v;v++)l(n,v,m?y(d[v],v):d[v]);else for(f=g.call(d),n=new h;!(o=f.next()).done;v++)l(n,v,m?a(f,y,[o.value,v],!0):o.value);return n.length=v,n}})},5773:function(t,e,n){"use strict";var r=n(9672),o=n(989),i=n(8417),a=n(5683);t.exports=n(1531)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},4678:function(t,e,n){"use strict";var r=n(8324),o=n(5145)(1);r(r.P+r.F*!n(3442)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},8578:function(t,e,n){"use strict";var r=n(8324),o=n(1597);r(r.S+r.F*n(4937)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},802:function(t,e,n){"use strict";var r=n(8324),o=n(8385),i=n(513),a=n(7818),c=n(7998),s=[].slice;r(r.P+r.F*n(4937)((function(){o&&s.call(o)})),"Array",{slice:function(t,e){var n=c(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return s.call(this,t,e);for(var o=a(t,n),l=a(e,n),u=c(l-o),f=new Array(u),d=0;d<u;d++)f[d]="String"==r?this.charAt(o+d):this[o+d];return f}})},7078:function(t,e,n){n(4812)("Array")},6884:function(t,e,n){var r=n(8722)("toPrimitive"),o=Date.prototype;r in o||n(4761)(o,r,n(8494))},7960:function(t,e,n){"use strict";var r=n(1222),o=n(1378),i=n(8722)("hasInstance"),a=Function.prototype;i in a||n(3702).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},2070:function(t,e,n){var r=n(3702).f,o=Function.prototype,i=/^\s*function ([^ (]*)/,a="name";a in o||n(6475)&&r(o,a,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},5141:function(t,e,n){"use strict";var r=n(5305),o=n(9268),i="Map";t.exports=n(4858)(i,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,i),t);return e&&e.v},set:function(t,e){return r.def(o(this,i),0===t?0:t,e)}},r,!0)},7064:function(t,e,n){var r=n(8324),o=n(7773),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},1352:function(t,e,n){var r=n(8324),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},8103:function(t,e,n){var r=n(8324),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},7442:function(t,e,n){var r=n(8324),o=n(2856);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},4632:function(t,e,n){var r=n(8324);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},8413:function(t,e,n){var r=n(8324),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},4236:function(t,e,n){var r=n(8324),o=n(782);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},1710:function(t,e,n){var r=n(8324);r(r.S,"Math",{fround:n(3998)})},9704:function(t,e,n){var r=n(8324),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,c=arguments.length,s=0;a<c;)s<(n=o(arguments[a++]))?(i=i*(r=s/n)*r+1,s=n):i+=n>0?(r=n/s)*r:n;return s===1/0?1/0:s*Math.sqrt(i)}})},5791:function(t,e,n){var r=n(8324),o=Math.imul;r(r.S+r.F*n(4937)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=65535,r=+t,o=+e,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},2395:function(t,e,n){var r=n(8324);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},8406:function(t,e,n){var r=n(8324);r(r.S,"Math",{log1p:n(7773)})},9946:function(t,e,n){var r=n(8324);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},5656:function(t,e,n){var r=n(8324);r(r.S,"Math",{sign:n(2856)})},3545:function(t,e,n){var r=n(8324),o=n(782),i=Math.exp;r(r.S+r.F*n(4937)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},7315:function(t,e,n){var r=n(8324),o=n(782),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},5638:function(t,e,n){var r=n(8324);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},7767:function(t,e,n){"use strict";var r=n(6887),o=n(9570),i=n(513),a=n(6257),c=n(3262),s=n(4937),l=n(2790).f,u=n(4234).f,f=n(3702).f,d=n(8421).trim,h="Number",p=r.Number,y=p,m=p.prototype,v=i(n(4339)(m))==h,g="trim"in String.prototype,x=function(t){var e=c(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=g?e.trim():d(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,s=e.slice(2),l=0,u=s.length;l<u;l++)if((a=s.charCodeAt(l))<48||a>o)return NaN;return parseInt(s,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(v?s((function(){m.valueOf.call(n)})):i(n)!=h)?a(new y(x(e)),n,p):x(e)};for(var b,_=n(6475)?l(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)o(y,b=_[w])&&!o(p,b)&&f(p,b,u(y,b));p.prototype=m,m.constructor=p,n(1838)(r,h,p)}},2620:function(t,e,n){var r=n(8324);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},7777:function(t,e,n){var r=n(8324),o=n(6887).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},6447:function(t,e,n){var r=n(8324);r(r.S,"Number",{isInteger:n(9803)})},4616:function(t,e,n){var r=n(8324);r(r.S,"Number",{isNaN:function(t){return t!=t}})},691:function(t,e,n){var r=n(8324),o=n(9803),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},9134:function(t,e,n){var r=n(8324);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},2201:function(t,e,n){var r=n(8324);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},343:function(t,e,n){var r=n(8324),o=n(4571);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},7132:function(t,e,n){var r=n(8324),o=n(5585);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},7720:function(t,e,n){var r=n(8324);r(r.S+r.F,"Object",{assign:n(4335)})},1936:function(t,e,n){var r=n(1222),o=n(993).onFreeze;n(7500)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},8644:function(t,e,n){var r=n(5683),o=n(4234).f;n(7500)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},2267:function(t,e,n){n(7500)("getOwnPropertyNames",(function(){return n(6414).f}))},1229:function(t,e,n){var r=n(8083),o=n(1378);n(7500)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},1978:function(t,e,n){var r=n(1222);n(7500)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},6874:function(t,e,n){var r=n(1222);n(7500)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},1136:function(t,e,n){var r=n(1222);n(7500)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},7856:function(t,e,n){var r=n(8324);r(r.S,"Object",{is:n(1697)})},4214:function(t,e,n){var r=n(8083),o=n(812);n(7500)("keys",(function(){return function(t){return o(r(t))}}))},9205:function(t,e,n){var r=n(1222),o=n(993).onFreeze;n(7500)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},715:function(t,e,n){var r=n(1222),o=n(993).onFreeze;n(7500)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},9816:function(t,e,n){"use strict";var r=n(9520),o={};o[n(8722)("toStringTag")]="z",o+""!="[object z]"&&n(1838)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},797:function(t,e,n){"use strict";var r,o,i,a,c=n(5190),s=n(6887),l=n(8061),u=n(9520),f=n(8324),d=n(1222),h=n(3205),p=n(1404),y=n(2706),m=n(1986),v=n(566).set,g=n(5038)(),x=n(8978),b=n(8831),_=n(246),w=n(5414),S="Promise",E=s.TypeError,M=s.process,k=M&&M.versions,N=k&&k.v8||"",A=s.Promise,O="process"==u(M),C=function(){},L=o=x.f,I=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n(8722)("species")]=function(t){t(C,C)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof e&&0!==N.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),j=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,c=o?e.ok:e.fail,s=e.resolve,l=e.reject,u=e.domain;try{c?(o||(2==t._h&&z(t),t._h=1),!0===c?n=r:(u&&u.enter(),n=c(r),u&&(u.exit(),a=!0)),n===e.promise?l(E("Promise-chain cycle")):(i=j(n))?i.call(n,s,l):s(n)):l(r)}catch(t){u&&!a&&u.exit(),l(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&T(t)}))}},T=function(t){v.call(s,(function(){var e,n,r,o=t._v,i=F(t);if(i&&(e=b((function(){O?M.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=O||F(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},z=function(t){v.call(s,(function(){var e;O?M.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},q=function t(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw E("Promise can't be resolved itself");(n=j(e))?g((function(){var o={_w:r,_d:!1};try{n.call(e,l(t,o,1),l(R,o,1))}catch(t){R.call(o,t)}})):(r._v=e,r._s=1,P(r,!1))}catch(t){R.call({_w:r,_d:!1},t)}}};I||(A=function(t){p(this,A,S,"_h"),h(t),r.call(this);try{t(l(q,this,1),l(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(3066)(A.prototype,{then:function(t,e){var n=L(m(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=l(q,t,1),this.reject=l(R,t,1)},x.f=L=function(t){return t===A||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!I,{Promise:A}),n(1135)(A,S),n(4812)(S),a=n(7266).Promise,f(f.S+f.F*!I,S,{reject:function(t){var e=L(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!I),S,{resolve:function(t){return w(c&&this===a?A:this,t)}}),f(f.S+f.F*!(I&&n(3370)((function(t){A.all(t).catch(C)}))),S,{all:function(t){var e=this,n=L(e),r=n.resolve,o=n.reject,i=b((function(){var n=[],i=0,a=1;y(t,!1,(function(t){var c=i++,s=!1;n.push(void 0),a++,e.resolve(t).then((function(t){s||(s=!0,n[c]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=L(e),r=n.reject,o=b((function(){y(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},3293:function(t,e,n){var r=n(8324),o=n(3205),i=n(2199),a=(n(6887).Reflect||{}).apply,c=Function.apply;r(r.S+r.F*!n(4937)((function(){a((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),s=i(n);return a?a(r,e,s):c.call(r,e,s)}})},2957:function(t,e,n){var r=n(8324),o=n(4339),i=n(3205),a=n(2199),c=n(1222),s=n(4937),l=n(8623),u=(n(6887).Reflect||{}).construct,f=s((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),d=!s((function(){u((function(){}))}));r(r.S+r.F*(f||d),"Reflect",{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(d&&!f)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(l.apply(t,r))}var s=n.prototype,h=o(c(s)?s:Object.prototype),p=Function.apply.call(t,h,e);return c(p)?p:h}})},5158:function(t,e,n){var r=n(3702),o=n(8324),i=n(2199),a=n(3262);o(o.S+o.F*n(4937)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){i(t),e=a(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},6312:function(t,e,n){var r=n(8324),o=n(4234).f,i=n(2199);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},7185:function(t,e,n){var r=n(4234),o=n(8324),i=n(2199);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},1856:function(t,e,n){var r=n(8324),o=n(1378),i=n(2199);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},1480:function(t,e,n){var r=n(4234),o=n(1378),i=n(9570),a=n(8324),c=n(1222),s=n(2199);a(a.S,"Reflect",{get:function t(e,n){var a,l,u=arguments.length<3?e:arguments[2];return s(e)===u?e[n]:(a=r.f(e,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:c(l=o(e))?t(l,n,u):void 0}})},5465:function(t,e,n){var r=n(8324);r(r.S,"Reflect",{has:function(t,e){return e in t}})},957:function(t,e,n){var r=n(8324),o=n(2199),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},1408:function(t,e,n){var r=n(8324);r(r.S,"Reflect",{ownKeys:n(6352)})},2712:function(t,e,n){var r=n(8324),o=n(2199),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},4248:function(t,e,n){var r=n(8324),o=n(2463);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},667:function(t,e,n){var r=n(3702),o=n(4234),i=n(1378),a=n(9570),c=n(8324),s=n(913),l=n(2199),u=n(1222);c(c.S,"Reflect",{set:function t(e,n,c){var f,d,h=arguments.length<4?e:arguments[3],p=o.f(l(e),n);if(!p){if(u(d=i(e)))return t(d,n,c,h);p=s(0)}if(a(p,"value")){if(!1===p.writable||!u(h))return!1;if(f=o.f(h,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=c,r.f(h,n,f)}else r.f(h,n,s(0,c));return!0}return void 0!==p.set&&(p.set.call(h,c),!0)}})},4458:function(t,e,n){var r=n(6887),o=n(6257),i=n(3702).f,a=n(2790).f,c=n(8776),s=n(2053),l=r.RegExp,u=l,f=l.prototype,d=/a/g,h=/a/g,p=new l(d)!==d;if(n(6475)&&(!p||n(4937)((function(){return h[n(8722)("match")]=!1,l(d)!=d||l(h)==h||"/a/i"!=l(d,"i")})))){l=function(t,e){var n=this instanceof l,r=c(t),i=void 0===e;return!n&&r&&t.constructor===l&&i?t:o(p?new u(r&&!i?t.source:t,e):u((r=t instanceof l)?t.source:t,r&&i?s.call(t):e),n?this:f,l)};for(var y=function(t){t in l||i(l,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},m=a(u),v=0;m.length>v;)y(m[v++]);f.constructor=l,l.prototype=f,n(1838)(r,"RegExp",l)}n(4812)("RegExp")},5011:function(t,e,n){"use strict";var r=n(2998);n(8324)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},1044:function(t,e,n){n(6475)&&"g"!=/./g.flags&&n(3702).f(RegExp.prototype,"flags",{configurable:!0,get:n(2053)})},8290:function(t,e,n){"use strict";var r=n(2199),o=n(7998),i=n(918),a=n(9102);n(6776)("match",1,(function(t,e,n,c){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=c(n,t,this);if(e.done)return e.value;var s=r(t),l=String(this);if(!s.global)return a(s,l);var u=s.unicode;s.lastIndex=0;for(var f,d=[],h=0;null!==(f=a(s,l));){var p=String(f[0]);d[h]=p,""===p&&(s.lastIndex=i(l,o(s.lastIndex),u)),h++}return 0===h?null:d}]}))},4706:function(t,e,n){"use strict";var r=n(2199),o=n(8083),i=n(7998),a=n(3003),c=n(918),s=n(9102),l=Math.max,u=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(6776)("replace",2,(function(t,e,n,p){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=p(n,t,this,e);if(o.done)return o.value;var f=r(t),d=String(this),h="function"==typeof e;h||(e=String(e));var m=f.global;if(m){var v=f.unicode;f.lastIndex=0}for(var g=[];;){var x=s(f,d);if(null===x)break;if(g.push(x),!m)break;""===String(x[0])&&(f.lastIndex=c(d,i(f.lastIndex),v))}for(var b,_="",w=0,S=0;S<g.length;S++){x=g[S];for(var E=String(x[0]),M=l(u(a(x.index),d.length),0),k=[],N=1;N<x.length;N++)k.push(void 0===(b=x[N])?b:String(b));var A=x.groups;if(h){var O=[E].concat(k,M,d);void 0!==A&&O.push(A);var C=String(e.apply(void 0,O))}else C=y(E,d,M,k,A,e);M>=w&&(_+=d.slice(w,M)+C,w=M+E.length)}return _+d.slice(w)}];function y(t,e,r,i,a,c){var s=r+t.length,l=i.length,u=h;return void 0!==a&&(a=o(a),u=d),n.call(c,u,(function(n,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":c=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>l){var d=f(u/10);return 0===d?n:d<=l?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):n}c=i[u-1]}return void 0===c?"":c}))}}))},475:function(t,e,n){"use strict";var r=n(2199),o=n(1697),i=n(9102);n(6776)("search",1,(function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=r(t),s=String(this),l=c.lastIndex;o(l,0)||(c.lastIndex=0);var u=i(c,s);return o(c.lastIndex,l)||(c.lastIndex=l),null===u?-1:u.index}]}))},62:function(t,e,n){"use strict";var r=n(8776),o=n(2199),i=n(1986),a=n(918),c=n(7998),s=n(9102),l=n(2998),u=n(4937),f=Math.min,d=[].push,h=4294967295,p=!u((function(){RegExp(h,"y")}));n(6776)("split",2,(function(t,e,n,u){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,c,s=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=void 0===e?h:e>>>0,y=new RegExp(t.source,u+"g");(i=l.call(y,o))&&!((a=y.lastIndex)>f&&(s.push(o.slice(f,i.index)),i.length>1&&i.index<o.length&&d.apply(s,i.slice(1)),c=i[0].length,f=a,s.length>=p));)y.lastIndex===i.index&&y.lastIndex++;return f===o.length?!c&&y.test("")||s.push(""):s.push(o.slice(f)),s.length>p?s.slice(0,p):s}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):y.call(String(o),n,r)},function(t,e){var r=u(y,t,this,e,y!==n);if(r.done)return r.value;var l=o(t),d=String(this),m=i(l,RegExp),v=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(p?"y":"g"),x=new m(p?l:"^(?:"+l.source+")",g),b=void 0===e?h:e>>>0;if(0===b)return[];if(0===d.length)return null===s(x,d)?[d]:[];for(var _=0,w=0,S=[];w<d.length;){x.lastIndex=p?w:0;var E,M=s(x,p?d:d.slice(w));if(null===M||(E=f(c(x.lastIndex+(p?0:w)),d.length))===_)w=a(d,w,v);else{if(S.push(d.slice(_,w)),S.length===b)return S;for(var k=1;k<=M.length-1;k++)if(S.push(M[k]),S.length===b)return S;w=_=E}}return S.push(d.slice(_)),S}]}))},7658:function(t,e,n){"use strict";n(1044);var r=n(2199),o=n(2053),i=n(6475),a="toString",c=/./.toString,s=function(t){n(1838)(RegExp.prototype,a,t,!0)};n(4937)((function(){return"/a/b"!=c.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)})):c.name!=a&&s((function(){return c.call(this)}))},2307:function(t,e,n){"use strict";var r=n(5305),o=n(9268);t.exports=n(4858)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},1098:function(t,e,n){"use strict";n(9070)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},8277:function(t,e,n){"use strict";n(9070)("big",(function(t){return function(){return t(this,"big","","")}}))},5738:function(t,e,n){"use strict";n(9070)("blink",(function(t){return function(){return t(this,"blink","","")}}))},4731:function(t,e,n){"use strict";n(9070)("bold",(function(t){return function(){return t(this,"b","","")}}))},2439:function(t,e,n){"use strict";var r=n(8324),o=n(8075)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},8303:function(t,e,n){"use strict";var r=n(8324),o=n(7998),i=n(316),a="endsWith",c="".endsWith;r(r.P+r.F*n(7724)(a),"String",{endsWith:function(t){var e=i(this,t,a),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),l=String(t);return c?c.call(e,l,s):e.slice(s-l.length,s)===l}})},2502:function(t,e,n){"use strict";n(9070)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},4560:function(t,e,n){"use strict";n(9070)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},3146:function(t,e,n){"use strict";n(9070)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},2956:function(t,e,n){var r=n(8324),o=n(7818),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},2314:function(t,e,n){"use strict";var r=n(8324),o=n(316),i="includes";r(r.P+r.F*n(7724)(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},9142:function(t,e,n){"use strict";n(9070)("italics",(function(t){return function(){return t(this,"i","","")}}))},6397:function(t,e,n){"use strict";var r=n(8075)(!0);n(1531)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},1339:function(t,e,n){"use strict";n(9070)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},5769:function(t,e,n){var r=n(8324),o=n(5683),i=n(7998);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],c=0;n>c;)a.push(String(e[c++])),c<r&&a.push(String(arguments[c]));return a.join("")}})},8668:function(t,e,n){var r=n(8324);r(r.P,"String",{repeat:n(3841)})},6808:function(t,e,n){"use strict";n(9070)("small",(function(t){return function(){return t(this,"small","","")}}))},1274:function(t,e,n){"use strict";var r=n(8324),o=n(7998),i=n(316),a="startsWith",c="".startsWith;r(r.P+r.F*n(7724)(a),"String",{startsWith:function(t){var e=i(this,t,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return c?c.call(e,r,n):e.slice(n,n+r.length)===r}})},8481:function(t,e,n){"use strict";n(9070)("strike",(function(t){return function(){return t(this,"strike","","")}}))},182:function(t,e,n){"use strict";n(9070)("sub",(function(t){return function(){return t(this,"sub","","")}}))},6261:function(t,e,n){"use strict";n(9070)("sup",(function(t){return function(){return t(this,"sup","","")}}))},8250:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(6887),i=n(9570),a=n(6475),c=n(8324),s=n(1838),l=n(993).KEY,u=n(4937),f=n(9237),d=n(1135),h=n(7378),p=n(8722),y=n(7592),m=n(8273),v=n(9965),g=n(1106),x=n(2199),b=n(1222),_=n(8083),w=n(5683),S=n(3262),E=n(913),M=n(4339),k=n(6414),N=n(4234),A=n(2077),O=n(3702),C=n(812),L=N.f,I=O.f,j=k.f,P=o.Symbol,T=o.JSON,F=T&&T.stringify,z=p("_hidden"),R=p("toPrimitive"),q={}.propertyIsEnumerable,B=f("symbol-registry"),H=f("symbols"),W=f("op-symbols"),U=Object.prototype,D="function"==typeof P&&!!A.f,K=o.QObject,V=!K||!K.prototype||!K.prototype.findChild,G=a&&u((function(){return 7!=M(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=L(U,e);r&&delete U[e],I(t,e,n),r&&t!==U&&I(U,e,r)}:I,$=function(t){var e=H[t]=M(P.prototype);return e._k=t,e},Y=D&&"symbol"==r(P.iterator)?function(t){return"symbol"==r(t)}:function(t){return t instanceof P},Q=function(t,e,n){return t===U&&Q(W,e,n),x(t),e=S(e,!0),x(n),i(H,e)?(n.enumerable?(i(t,z)&&t[z][e]&&(t[z][e]=!1),n=M(n,{enumerable:E(0,!1)})):(i(t,z)||I(t,z,E(1,{})),t[z][e]=!0),G(t,e,n)):I(t,e,n)},J=function(t,e){x(t);for(var n,r=v(e=w(e)),o=0,i=r.length;i>o;)Q(t,n=r[o++],e[n]);return t},X=function(t){var e=q.call(this,t=S(t,!0));return!(this===U&&i(H,t)&&!i(W,t))&&(!(e||!i(this,t)||!i(H,t)||i(this,z)&&this[z][t])||e)},Z=function(t,e){if(t=w(t),e=S(e,!0),t!==U||!i(H,e)||i(W,e)){var n=L(t,e);return!n||!i(H,e)||i(t,z)&&t[z][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=j(w(t)),r=[],o=0;n.length>o;)i(H,e=n[o++])||e==z||e==l||r.push(e);return r},et=function(t){for(var e,n=t===U,r=j(n?W:w(t)),o=[],a=0;r.length>a;)!i(H,e=r[a++])||n&&!i(U,e)||o.push(H[e]);return o};D||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function e(n){this===U&&e.call(W,n),i(this,z)&&i(this[z],t)&&(this[z][t]=!1),G(this,t,E(1,n))};return a&&V&&G(U,t,{configurable:!0,set:e}),$(t)},s(P.prototype,"toString",(function(){return this._k})),N.f=Z,O.f=Q,n(2790).f=k.f=tt,n(3882).f=X,A.f=et,a&&!n(5190)&&s(U,"propertyIsEnumerable",X,!0),y.f=function(t){return $(p(t))}),c(c.G+c.W+c.F*!D,{Symbol:P});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)p(nt[rt++]);for(var ot=C(p.store),it=0;ot.length>it;)m(ot[it++]);c(c.S+c.F*!D,"Symbol",{for:function(t){return i(B,t+="")?B[t]:B[t]=P(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),c(c.S+c.F*!D,"Object",{create:function(t,e){return void 0===e?M(t):J(M(t),e)},defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u((function(){A.f(1)}));c(c.S+c.F*at,"Object",{getOwnPropertySymbols:function(t){return A.f(_(t))}}),T&&c(c.S+c.F*(!D||u((function(){var t=P();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!Y(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),r[1]=e,F.apply(T,r)}}),P.prototype[R]||n(4761)(P.prototype,R,P.prototype.valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},8023:function(t,e,n){"use strict";var r=n(8324),o=n(1379),i=n(6895),a=n(2199),c=n(7818),s=n(7998),l=n(1222),u=n(6887).ArrayBuffer,f=n(1986),d=i.ArrayBuffer,h=i.DataView,p=o.ABV&&u.isView,y=d.prototype.slice,m=o.VIEW,v="ArrayBuffer";r(r.G+r.W+r.F*(u!==d),{ArrayBuffer:d}),r(r.S+r.F*!o.CONSTR,v,{isView:function(t){return p&&p(t)||l(t)&&m in t}}),r(r.P+r.U+r.F*n(4937)((function(){return!new d(2).slice(1,void 0).byteLength})),v,{slice:function(t,e){if(void 0!==y&&void 0===e)return y.call(a(this),t);for(var n=a(this).byteLength,r=c(t,n),o=c(void 0===e?n:e,n),i=new(f(this,d))(s(o-r)),l=new h(this),u=new h(i),p=0;r<o;)u.setUint8(p++,l.getUint8(r++));return i}}),n(4812)(v)},3100:function(t,e,n){n(3252)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},35:function(t,e,n){n(3252)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},869:function(t,e,n){n(3252)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},8683:function(t,e,n){n(3252)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},5181:function(t,e,n){n(3252)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},6360:function(t,e,n){n(3252)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},4592:function(t,e,n){n(3252)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},2419:function(t,e,n){n(3252)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},6971:function(t,e,n){n(3252)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},2757:function(t,e,n){"use strict";var r,o=n(6887),i=n(5145)(0),a=n(1838),c=n(993),s=n(4335),l=n(1047),u=n(1222),f=n(9268),d=n(9268),h=!o.ActiveXObject&&"ActiveXObject"in o,p="WeakMap",y=c.getWeak,m=Object.isExtensible,v=l.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},x={get:function(t){if(u(t)){var e=y(t);return!0===e?v(f(this,p)).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(f(this,p),t,e)}},b=t.exports=n(4858)(p,g,x,l,!0,!0);d&&h&&(s((r=l.getConstructor(g,p)).prototype,x),c.NEED=!0,i(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];a(e,t,(function(e,o){if(u(e)&&!m(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)}))})))},1827:function(t,e,n){"use strict";var r=n(1047),o=n(9268),i="WeakSet";n(4858)(i,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,i),t,!0)}},r,!1,!0)},7199:function(t,e,n){"use strict";var r=n(8324),o=n(3099),i=n(8083),a=n(7998),c=n(3205),s=n(8610);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return c(t),e=a(r.length),n=s(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(9672)("flatMap")},9019:function(t,e,n){"use strict";var r=n(8324),o=n(2e3)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(9672)("includes")},2105:function(t,e,n){"use strict";var r=n(8324),o=n(8083),i=n(3205),a=n(3702);n(6475)&&r(r.P+n(5024),"Object",{__defineGetter__:function(t,e){a.f(o(this),t,{get:i(e),enumerable:!0,configurable:!0})}})},6665:function(t,e,n){"use strict";var r=n(8324),o=n(8083),i=n(3205),a=n(3702);n(6475)&&r(r.P+n(5024),"Object",{__defineSetter__:function(t,e){a.f(o(this),t,{set:i(e),enumerable:!0,configurable:!0})}})},3755:function(t,e,n){var r=n(8324),o=n(7011)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},9215:function(t,e,n){var r=n(8324),o=n(6352),i=n(5683),a=n(4234),c=n(1597);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),s=a.f,l=o(r),u={},f=0;l.length>f;)void 0!==(n=s(r,e=l[f++]))&&c(u,e,n);return u}})},1508:function(t,e,n){"use strict";var r=n(8324),o=n(8083),i=n(3262),a=n(1378),c=n(4234).f;n(6475)&&r(r.P+n(5024),"Object",{__lookupGetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=c(n,r))return e.get}while(n=a(n))}})},6822:function(t,e,n){"use strict";var r=n(8324),o=n(8083),i=n(3262),a=n(1378),c=n(4234).f;n(6475)&&r(r.P+n(5024),"Object",{__lookupSetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=c(n,r))return e.set}while(n=a(n))}})},3381:function(t,e,n){var r=n(8324),o=n(7011)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},9971:function(t,e,n){"use strict";var r=n(8324),o=n(7266),i=n(6887),a=n(1986),c=n(5414);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}})},9985:function(t,e,n){"use strict";var r=n(8324),o=n(3817),i=n(246),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},2610:function(t,e,n){"use strict";var r=n(8324),o=n(3817),i=n(246),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},472:function(t,e,n){"use strict";n(8421)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},8412:function(t,e,n){"use strict";n(8421)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},8619:function(t,e,n){n(8273)("asyncIterator")},707:function(t,e,n){for(var r=n(5773),o=n(812),i=n(1838),a=n(6887),c=n(4761),s=n(8417),l=n(8722),u=l("iterator"),f=l("toStringTag"),d=s.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(h),y=0;y<p.length;y++){var m,v=p[y],g=h[v],x=a[v],b=x&&x.prototype;if(b&&(b[u]||c(b,u,d),b[f]||c(b,f,v),s[v]=d,g))for(m in r)b[m]||i(b,m,r[m],!0)}},7839:function(t,e,n){var r=n(8324),o=n(566);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},7016:function(t,e,n){var r=n(6887),o=n(8324),i=n(246),a=[].slice,c=/MSIE .\./.test(i),s=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*c,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){"use strict";function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw i}}}}n(7441),n(1675),n(6486),n(6518),n(6619),n(7199),n(941),n(9019),n(5773),n(4678),n(8578),n(802),n(7078),n(6884),n(7960),n(2070),n(5141),n(7064),n(1352),n(8103),n(7442),n(4632),n(8413),n(4236),n(1710),n(9704),n(5791),n(8406),n(2395),n(9946),n(5656),n(3545),n(7315),n(5638),n(7767),n(2620),n(7777),n(6447),n(4616),n(691),n(9134),n(2201),n(343),n(7132),n(7720),n(2105),n(6665),n(3755),n(1936),n(8644),n(9215),n(2267),n(1229),n(1508),n(6822),n(9205),n(9816),n(7856),n(6874),n(1136),n(1978),n(4214),n(715),n(3381),n(797),n(9971),n(3293),n(2957),n(5158),n(6312),n(1480),n(7185),n(1856),n(5465),n(957),n(1408),n(2712),n(667),n(4248),n(4458),n(1044),n(8290),n(4706),n(62),n(475),n(7658),n(2307),n(8250),n(8619),n(1098),n(8277),n(5738),n(4731),n(2439),n(8303),n(2502),n(4560),n(3146),n(2956),n(2314),n(9142),n(6397),n(1339),n(2610),n(9985),n(5769),n(8668),n(6808),n(1274),n(8481),n(182),n(6261),n(472),n(8412),n(8023),n(5181),n(2419),n(6971),n(869),n(6360),n(8683),n(4592),n(3100),n(35),n(2757),n(1827),n(7016),n(7839),n(707),n(2818),n(7383);var l,u,f,d,h,p,y,m={},v=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function x(t,e){for(var n in e)t[n]=e[n];return t}function b(t){var e=t.parentNode;e&&e.removeChild(t)}function _(t,e,n){var r,o,i,a={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?l.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return w(t,a,r,o,null)}function w(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++f:o};return null==o&&null!=u.vnode&&u.vnode(i),i}function S(t){return t.children}function E(t,e){this.props=t,this.context=e}function M(t,e){if(null==e)return t.__?M(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?M(t):null}function k(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return k(t)}}function N(t){(!t.__d&&(t.__d=!0)&&d.push(t)&&!A.__r++||p!==u.debounceRendering)&&((p=u.debounceRendering)||h)(A)}function A(){for(var t;A.__r=d.length;)t=d.sort((function(t,e){return t.__v.__b-e.__v.__b})),d=[],t.some((function(t){var e,n,r,o,i,a;t.__d&&(i=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=x({},o)).__v=o.__v+1,z(a,o,r,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?M(o):i,o.__h),R(n,o),o.__e!=i&&k(o)))}))}function O(t,e,n,r,o,i,a,c,s,l){var u,f,d,h,p,y,g,x=r&&r.__k||v,b=x.length;for(n.__k=[],u=0;u<e.length;u++)if(null!=(h=n.__k[u]=null==(h=e[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?w(null,h,null,null,h):Array.isArray(h)?w(S,{children:h},null,null,null):h.__b>0?w(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=x[u])||d&&h.key==d.key&&h.type===d.type)x[u]=void 0;else for(f=0;f<b;f++){if((d=x[f])&&h.key==d.key&&h.type===d.type){x[f]=void 0;break}d=null}z(t,h,d=d||m,o,i,a,c,s,l),p=h.__e,(f=h.ref)&&d.ref!=f&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(f,h.__c||p,h)),null!=p?(null==y&&(y=p),"function"==typeof h.type&&h.__k===d.__k?h.__d=s=C(h,s,t):s=I(t,h,d,x,p,s),"function"==typeof n.type&&(n.__d=s)):s&&d.__e==s&&s.parentNode!=t&&(s=M(d))}for(n.__e=y,u=b;u--;)null!=x[u]&&("function"==typeof n.type&&null!=x[u].__e&&x[u].__e==n.__d&&(n.__d=M(r,u+1)),H(x[u],x[u]));if(g)for(u=0;u<g.length;u++)B(g[u],g[++u],g[++u])}function C(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?C(r,e,n):I(n,r,r,o,r.__e,e));return e}function L(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){L(t,e)})):e.push(t)),e}function I(t,e,n,r,o,i){var a,c,s;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),a=null;else{for(c=i,s=0;(c=c.nextSibling)&&s<r.length;s+=2)if(c==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function j(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||g.test(e)?n:n+"px"}function P(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||j(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||j(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?F:T,i):t.removeEventListener(e,i?F:T,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function T(t){this.l[t.type+!1](u.event?u.event(t):t)}function F(t){this.l[t.type+!0](u.event?u.event(t):t)}function z(t,e,n,r,o,i,a,c,s){var l,f,d,h,p,y,m,v,g,b,_,w=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(s=n.__h,c=e.__e=n.__e,e.__h=null,i=[c]),(l=u.__b)&&l(e);try{t:if("function"==typeof w){if(v=e.props,g=(l=w.contextType)&&r[l.__c],b=l?g?g.props.value:l.__:r,n.__c?m=(f=e.__c=n.__c).__=f.__E:("prototype"in w&&w.prototype.render?e.__c=f=new w(v,b):(e.__c=f=new E(v,b),f.constructor=w,f.render=W),g&&g.sub(f),f.props=v,f.state||(f.state={}),f.context=b,f.__n=r,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=w.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=x({},f.__s)),x(f.__s,w.getDerivedStateFromProps(v,f.__s))),h=f.props,p=f.state,d)null==w.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==w.getDerivedStateFromProps&&v!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(v,b),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(v,f.__s,b)||e.__v===n.__v){f.props=v,f.state=f.__s,e.__v!==n.__v&&(f.__d=!1),f.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),f.__h.length&&a.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(v,f.__s,b),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,p,y)}))}f.context=b,f.props=v,f.state=f.__s,(l=u.__r)&&l(e),f.__d=!1,f.__v=e,f.__P=t,l=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(r=x(x({},r),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(h,p)),_=null!=l&&l.type===S&&null==l.key?l.props.children:l,O(t,Array.isArray(_)?_:[_],e,n,r,o,i,a,c,s),f.base=e.__e,e.__h=null,f.__h.length&&a.push(f),m&&(f.__E=f.__=null),f.__e=!1}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=q(n.__e,e,n,r,o,i,a,s);(l=u.diffed)&&l(e)}catch(t){e.__v=null,(s||null!=i)&&(e.__e=c,e.__h=!!s,i[i.indexOf(c)]=null),u.__e(t,e,n)}}function R(t,e){u.__c&&u.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){u.__e(t,e.__v)}}))}function q(t,e,n,r,o,i,a,c){var s,u,f,d=n.props,h=e.props,p=e.type,y=0;if("svg"===p&&(o=!0),null!=i)for(;y<i.length;y++)if((s=i[y])&&"setAttribute"in s==!!p&&(p?s.localName===p:3===s.nodeType)){t=s,i[y]=null;break}if(null==t){if(null===p)return document.createTextNode(h);t=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),i=null,c=!1}if(null===p)d===h||c&&t.data===h||(t.data=h);else{if(i=i&&l.call(t.childNodes),u=(d=n.props||m).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!c){if(null!=i)for(d={},y=0;y<t.attributes.length;y++)d[t.attributes[y].name]=t.attributes[y].value;(f||u)&&(f&&(u&&f.__html==u.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||P(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||P(t,i,e[i],n[i],r)}(t,h,d,o,c),f)e.__k=[];else if(y=e.props.children,O(t,Array.isArray(y)?y:[y],e,n,r,o&&"foreignObject"!==p,i,a,i?i[0]:n.__k&&M(n,0),c),null!=i)for(y=i.length;y--;)null!=i[y]&&b(i[y]);c||("value"in h&&void 0!==(y=h.value)&&(y!==d.value||y!==t.value||"progress"===p&&!y)&&P(t,"value",y,d.value,!1),"checked"in h&&void 0!==(y=h.checked)&&y!==t.checked&&P(t,"checked",y,d.checked,!1))}return t}function B(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){u.__e(t,n)}}function H(t,e,n){var r,o;if(u.unmount&&u.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||B(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){u.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&H(r[o],e,"function"!=typeof t.type);n||null==t.__e||b(t.__e),t.__e=t.__d=void 0}function W(t,e,n){return this.constructor(t,n)}function U(t,e,n){var r,o,i;u.__&&u.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],z(e,t=(!r&&n||e).__k=_(S,null,[t]),o||m,m,void 0!==e.ownerSVGElement,!r&&n?[n]:o?null:e.firstChild?l.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r),R(i,t)}function D(t,e){U(t,e,D)}function K(t,e,n){var r,o,i,a=x({},t.props);for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];return arguments.length>2&&(a.children=arguments.length>3?l.call(arguments,2):n),w(t.type,a,r||t.key,o||t.ref,null)}l=v.slice,u={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},f=0,E.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=x({},this.state),"function"==typeof t&&(t=t(x({},n),this.props)),t&&x(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),N(this))},E.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),N(this))},E.prototype.render=S,d=[],h="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,A.__r=0,y=0;var V,G,$,Y=0,Q=[],J=u.__b,X=u.__r,Z=u.diffed,tt=u.__c,et=u.unmount;function nt(t,e){u.__h&&u.__h(G,t,Y||e),Y=0;var n=G.__H||(G.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function rt(t){return Y=1,ot(pt,t)}function ot(t,e,n){var r=nt(V++,2);return r.t=t,r.__c||(r.__=[n?n(e):pt(void 0,e),function(t){var e=r.t(r.__[0],t);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=G),r.__}function it(t,e){var n=nt(V++,4);!u.__s&&ht(n.__H,e)&&(n.__=t,n.__H=e,G.__h.push(n))}function at(t){return Y=5,ct((function(){return{current:t}}),[])}function ct(t,e){var n=nt(V++,7);return ht(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function st(t,e){return Y=8,ct((function(){return t}),e)}function lt(){var t;for(Q.sort((function(t,e){return t.__v.__b-e.__v.__b}));t=Q.pop();)if(t.__P)try{t.__H.__h.forEach(ft),t.__H.__h.forEach(dt),t.__H.__h=[]}catch(e){t.__H.__h=[],u.__e(e,t.__v)}}u.__b=function(t){G=null,J&&J(t)},u.__r=function(t){X&&X(t),V=0;var e=(G=t.__c).__H;e&&(e.__h.forEach(ft),e.__h.forEach(dt),e.__h=[])},u.diffed=function(t){Z&&Z(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==Q.push(e)&&$===u.requestAnimationFrame||(($=u.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),ut&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);ut&&(e=requestAnimationFrame(n))})(lt)),G=null},u.__c=function(t,e){e.some((function(t){try{t.__h.forEach(ft),t.__h=t.__h.filter((function(t){return!t.__||dt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],u.__e(n,t.__v)}})),tt&&tt(t,e)},u.unmount=function(t){et&&et(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{ft(t)}catch(t){e=t}})),e&&u.__e(e,n.__v))};var ut="function"==typeof requestAnimationFrame;function ft(t){var e=G,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),G=e}function dt(t){var e=G;t.__c=t.__(),G=e}function ht(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function pt(t,e){return"function"==typeof e?e(t):e}function yt(t,e){for(var n in e)t[n]=e[n];return t}function mt(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function vt(t){this.props=t}(vt.prototype=new E).isPureReactComponent=!0,vt.prototype.shouldComponentUpdate=function(t,e){return mt(this.props,t)||mt(this.state,e)};var gt=u.__b;u.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),gt&&gt(t)};var xt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,bt=function(t,e){return null==t?null:L(L(t).map(e))},_t={map:bt,forEach:bt,count:function(t){return t?L(t).length:0},only:function(t){var e=L(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:L},wt=u.__e;u.__e=function(t,e,n){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);wt(t,e,n)};var St=u.unmount;function Et(){this.__u=0,this.t=null,this.__b=null}function Mt(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function kt(){this.u=null,this.o=null}u.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),St&&St(t)},(Et.prototype=new E).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Mt(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=a;var c=function(){if(!--r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(e,n,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)})),e.__c&&e.__c.__P===n&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},s=!0===e.__h;r.__u++||s||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},Et.prototype.componentWillUnmount=function(){this.t=[]},Et.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=yt({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)}))),e}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__e&&_(S,null,t.fallback);return o&&(o.__h=null),[_(S,null,e.__e?null:t.children),o]};var Nt=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function At(t){return this.getChildContext=function(){return t.context},t.children}function Ot(t){var e=this,n=t.i;e.componentWillUnmount=function(){U(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),U(_(At,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}(kt.prototype=new E).__e=function(t){var e=this,n=Mt(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),Nt(e,t,r)):o()};n?n(i):i()}},kt.prototype.render=function(t){this.u=null,this.o=new Map;var e=L(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},kt.prototype.componentDidUpdate=kt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){Nt(t,n,e)}))};var Ct="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Lt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,It="undefined"!=typeof document,jt=function(t){return("undefined"!=typeof Symbol&&"symbol"==r(Symbol())?/fil|che|rad/i:/fil|che|ra/i).test(t)};E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(E.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var Pt=u.event;function Tt(){}function Ft(){return this.cancelBubble}function zt(){return this.defaultPrevented}u.event=function(t){return Pt&&(t=Pt(t)),t.persist=Tt,t.isPropagationStopped=Ft,t.isDefaultPrevented=zt,t.nativeEvent=t};var Rt,qt={configurable:!0,get:function(){return this.class}},Bt=u.vnode;u.vnode=function(t){var e=t.type,n=t.props,r=n;if("string"==typeof e){var o=-1===e.indexOf("-");for(var i in r={},n){var a=n[i];It&&"children"===i&&"noscript"===e||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!jt(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():o&&Lt.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),r[i]=a)}"select"==e&&r.multiple&&Array.isArray(r.value)&&(r.value=L(n.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==e&&null!=r.defaultValue&&(r.value=L(n.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r,n.class!=n.className&&(qt.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",qt))}t.$$typeof=Ct,Bt&&Bt(t)};var Ht=u.__r;u.__r=function(t){Ht&&Ht(t),Rt=t.__c};var Wt={ReactCurrentDispatcher:{current:{readContext:function(t){return Rt.__n[t.__c].props.value}}}};function Ut(t){return!!t&&t.$$typeof===Ct}var Dt={useState:rt,useReducer:ot,useEffect:function(t,e){var n=nt(V++,3);!u.__s&&ht(n.__H,e)&&(n.__=t,n.__H=e,G.__H.__h.push(n))},useLayoutEffect:it,useRef:at,useImperativeHandle:function(t,e,n){Y=6,it((function(){"function"==typeof t?t(e()):t&&(t.current=e())}),null==n?n:n.concat(t))},useMemo:ct,useCallback:st,useContext:function(t){var e=G.context[t.__c],n=nt(V++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(G)),e.props.value):t.__},useDebugValue:function(t,e){u.useDebugValue&&u.useDebugValue(e?e(t):t)},version:"17.0.2",Children:_t,render:function(t,e,n){return null==e.__k&&(e.textContent=""),U(t,e),"function"==typeof n&&n(),t?t.__c:null},hydrate:function(t,e,n){return D(t,e),"function"==typeof n&&n(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&(U(null,t),!0)},createPortal:function(t,e){return _(Ot,{__v:t,i:e})},createElement:_,createContext:function(t,e){var n={__c:e="__cC"+y++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(N)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(t){return _.bind(null,t)},cloneElement:function(t){return Ut(t)?K.apply(null,arguments):t},createRef:function(){return{current:null}},Fragment:S,isValidElement:Ut,findDOMNode:function(t){return t&&(t.base||1===t.nodeType&&t)||null},Component:E,PureComponent:vt,memo:function(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:mt(this.props,t)}function r(e){return this.shouldComponentUpdate=n,_(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(t){function e(e,n){var o=yt({},e);return delete o.ref,t(o,(n=e.ref||n)&&("object"!=r(n)||"current"in n)?n:null)}return e.$$typeof=xt,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e},flushSync:function(t,e){return t(e)},unstable_batchedUpdates:function(t,e){return t(e)},StrictMode:S,Suspense:Et,SuspenseList:kt,lazy:function(t){var e,n,r;function o(o){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){r=t})),r)throw r;if(!n)throw e;return _(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wt};function Kt(t,e){var n=e?new Set((t instanceof Set?Array.from(t):t).map(e)):t instanceof Set?t:new Set(t),r=n.size,o={setA:r,setB:r,union:r,intersection:r};return function(i){if(i===t)return o;var a=0;i.forEach((function(t){(e&&n.has(e(t))||!e&&n.has(t))&&a++}));var c=function(t){return t instanceof Set?t.size:t.length}(i);return{setA:r,setB:c,intersection:a,union:r+c-a}}}function Vt(t,e){var n=e?new Set((t instanceof Set?Array.from(t):t).map(e)):t instanceof Set?t:new Set(t),r=Array.isArray(t)?t:Array.from(t),o={setA:r,setB:r,union:r,intersection:r};return function(i){if(i===t)return o;var a=[],c=r.slice();return i.forEach((function(t){e&&n.has(e(t))||!e&&n.has(t)?a.push(t):c.push(t)})),{setA:r,setB:Array.isArray(i)?i:Array.from(i),intersection:a,union:c}}}function Gt(t){return Array.isArray(t.elems)}function $t(t){return"function"==typeof t.overlap}function Yt(t){return null!=t.set}function Qt(t,e,n){if($t(t))return t.overlap;if(Yt(t)&&t.set.overlap)return t.set.overlap;var r=Kt(Gt(t)?t.elems:t.set.elems,n);return function(n){return n.overlap&&Gt(t)&&Array.isArray(t.elems)?n.overlap(t.elems):n.overlap&&Yt(t)?n.overlap(t.set):r(n.elems)[e]}}function Jt(t,e,n){if($t(t))return function(){return null};if("intersection"===e){var r=function(t,e){var n=t instanceof Set?Array.from(t):t,r=e?new Set(n.map(e)):t instanceof Set?t:new Set(t);return function(o){if(o===t)return n;var i=[];return o.forEach((function(t){(e&&r.has(e(t))||!e&&r.has(t))&&i.push(t)})),i}}(Gt(t)?t.elems:t.set.elems,n);return function(t){return r(t.elems)}}var o=Vt(Gt(t)?t.elems:t.set.elems,n);return function(t){return o(t.elems)[e]}}function Xt(t){return null!=t&&"number"==typeof t.cardinality&&"string"==typeof t.name&&Array.isArray(t.elems)}function Zt(t){return Xt(t)&&"set"===t.type}function te(t){var e=t;return Xt(t)&&["composite","union","intersection","distinctIntersection"].includes(e.type)&&e.sets instanceof Set&&"number"==typeof e.degree}function ee(t){return Zt(t)||te(t)}function ne(t){var e=t;return null!=t&&"string"==typeof e.name&&"string"==typeof e.color&&(Gt(e)||Yt(e)||$t(e))}function re(t,e){return t.name.localeCompare(e.name)}function oe(t,e){return e.cardinality-t.cardinality}function ie(t,e){return t.degree-e.degree}function ae(t){return function(e,n){return t.reduce((function(t,r){return 0===t?r(e,n):t}),0)}}function ce(t){return function(e,n){return-t(e,n)}}function se(t){return function(e,n){var r=function(t){return t<0?Number.POSITIVE_INFINITY:t},o=r(t.findIndex((function(t){return e.sets.has(t)}))),i=r(t.findIndex((function(t){return n.sets.has(t)})));return o-i}}function le(t,e){if(!e)return re;var n=Array.isArray(e)?e:[e];return 0===n.length?re:ae(n.map((function(e){switch(e){case"cardinality":case"cardinality:desc":return oe;case"cardinality:asc":return ce(oe);case"name:desc":return ce(re);case"degree":case"degree:asc":return ie;case"degree:desc":return ce(ie);case"group":case"group:asc":return se(t);case"group:desc":return ce(se(t));default:return re}})))}function ue(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e;return n.order&&(r=r.sort(le(t,n.order))),null!=n.limit?r.slice(0,n.limit):r}var fe={distinctIntersection:" ∩ ",intersection:" ∩ ",union:" ∪ ",composite:","};function de(t){if(!t)return[255,255,255];var e=t.match(/#([\da-f]{2})([\da-f]{2})([\da-f]{2})/i);if(e)return[Number.parseInt(e[1],16),Number.parseInt(e[2],16),Number.parseInt(e[3],16)];var n=t.match(/\(([\d]+)[, ]([\d]+)[, ]([\d]+)\)/i);return n?[Number.parseInt(n[1],10),Number.parseInt(n[2],10),Number.parseInt(n[3],10)]:[255,255,255]}function he(t){if(1===t.length)return t[0];if(!t.every((function(t){return null==t}))){var e=t.map(de),n=Math.floor(e.reduce((function(t,e){return t+e[0]}),0)/e.length),r=Math.floor(e.reduce((function(t,e){return t+e[1]}),0)/e.length),o=Math.floor(e.reduce((function(t,e){return t+e[2]}),0)/e.length);return"#".concat(n.toString(16)).concat(r.toString(16)).concat(o.toString(16))}}function pe(t,e,n){var r=Array.from(t).sort((function(t,n){return e.get(t)-e.get(n)}));return 1===r.length?r[0].name:"(".concat(r.map((function(t){return t.name})).join(n),")")}function ye(t,e,n,r,o){return{type:0===n.size?"composite":t,elems:r,color:o(Array.from(n).map((function(t){return t.color}))),sets:n,name:e,cardinality:r.length,degree:n.size}}function me(t,e,n,r,o,i,a){var c=new Set(t.sets);e.sets.forEach((function(t){return c.add(t)}));var s=pe(c,o,fe[i]);if(0===t.cardinality||0===e.cardinality)return ye(i,s,c,[],a);var l=t,u=e;t.cardinality>e.cardinality&&(l=e,u=t);for(var f=new Set,d=n.get(u),h=[],p=l.elems.length,y=0;y<p;y++){var m=l.elems[y],v=r(m);d.has(v)&&(f.add(v),h.push(m))}var g=ye(i,s,c,h,a);return n.set(g,f),g}function ve(t,e,n,r,o,i,a){var c=new Set(t.sets);e.sets.forEach((function(t){return c.add(t)}));var s=pe(c,o,fe[i]);if(0===t.cardinality){var l=ye(i,s,c,e.elems,a);return n.set(l,n.get(e)),l}if(0===e.cardinality){var u=ye(i,s,c,t.elems,a);return n.set(u,n.get(t)),u}var f=t,d=e;t.cardinality>e.cardinality&&(f=e,d=t);var h=new Set(n.get(d)),p=n.get(d),y=d.elems.slice();f.elems.forEach((function(t){var e=r(t);p.has(e)||(h.add(e),y.push(t))}));var m=ye(i,s,c,y,a);return n.set(m,h),m}function ge(t,e,n,r,o,i){if("number"==typeof e)return{type:"composite",elems:[],color:i?i([]):void 0,sets:new Set,name:"()",cardinality:e,overlap:function(t){return t===this||ee(t)&&t.name===this.name&&t.cardinality===this.cardinality?this.cardinality:0},degree:0};if(Array.isArray(e))return ye(t,"()",new Set,e,i);var a=Array.from(r.values()),c=n.filter((function(t){var e=o(t);return a.every((function(t){return!t.has(e)}))}));return ye(t,"()",new Set,c,i)}function xe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.type,r=void 0===n?"intersection":n,o=e.min,i=void 0===o?0:o,a=e.max,c=void 0===a?Number.POSITIVE_INFINITY:a,s=e.empty,l=void 0!==s&&s,u=e.elems,f=void 0===u?[]:u,d=e.notPartOfAnySet,h=e.toElemKey,p=e.mergeColors,y=void 0===p?he:p,m=[],v=new Map(t.map((function(t,e){return[t,e]}))),g=new Map(t.map((function(t){return[t,h?new Set(t.elems.map(h)):new Set(t.elems)]}))),x=h?null:g,b=h?g:null,_="union"===r?ve:me;function w(e){if(!(e.degree<i||e.degree>c||0===e.cardinality&&!l))if("distinctIntersection"===r){var n=t.filter((function(t){return!e.sets.has(t)})),o=[];if(h){var a=n.map((function(t){return b.get(t)}));o=e.elems.filter((function(t){var e=h(t);return a.every((function(t){return!t.has(e)}))}))}else{var s=n.map((function(t){return x.get(t)}));o=e.elems.filter((function(t){return s.every((function(e){return!e.has(t)}))}))}if(o.length!==e.cardinality){var u=ye(r,e.name,e.sets,o,y);(0!==u.cardinality||l)&&m.push(u)}else m.push(e)}else m.push(e)}function S(t,e,n,o){if(!(e>c))for(var i=t.length,a=0;a<i;a++){for(var s=t[a],u=[],f=a+1;f<i;f++){var d=t[f],h=_(s,d,n,o,v,r,y);w(h),("union"===r||h.cardinality>0||l)&&u.push(h)}u.length>1&&S(u,e+1,n,o)}}i<=0&&w(h?ge(r,d,f,b,h,y):ge(r,d,f,x,(function(t){return t}),y));var E=t.map((function(t){var e=ye(r,t.name,new Set([t]),t.elems,y);return g.set(e,g.get(t)),w(e),e}));return h?S(E,2,b,h):S(E,2,x,(function(t){return t})),ue(t,m,e)}function be(t){return Object.assign({type:"set",cardinality:t.elems.length},t)}function _e(t){if(!t)return re;switch(t){case"cardinality":case"cardinality:desc":return ae([oe,re]);case"cardinality:asc":return ae([ce(oe),re]);case"name:desc":return ce(re);default:return re}}function we(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t;if(e.order){var r=_e(e.order);n=n.slice().sort(r)}return null!=e.limit?n.slice(0,e.limit):n}function Se(t){return"".concat(t.name,":").concat(t.type,"#").concat(t.cardinality)}function Ee(t){return 0===t.sets.size}function Me(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Se,r={done:null,aKey:"",bKey:"",aIsSet:!1,bIsSet:!1,toKey:n};return t===e?(r.done=t.cardinality,r):0===t.cardinality||0===e.cardinality?(r.done=0,r):(r.aKey=n(t),r.bKey=n(e),r.aKey===r.bKey?(r.done=t.cardinality,r):(r.aIsSet=Zt(t),r.bIsSet=Zt(e),!r.aIsSet&&Ee(t)||!r.bIsSet&&Ee(e)?(r.done=0,r):r))}function ke(t,e){return!(e.bIsSet||!e.aIsSet)&&Array.from(t.sets).map(e.toKey).includes(e.aKey)}function Ne(t,e){return!(!e.bIsSet||e.aIsSet)&&Array.from(t.sets).map(e.toKey).includes(e.bKey)}function Ae(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Se;return t.map((function(t){var n=Array.from(t.sets).map(e).sort();return{key:n.join("&"),s:n,sets:new Set(n),degree:t.degree,cardinality:t.cardinality}}))}function Oe(t,e,n){var r=new Set;if(n.aIsSet)r.add(n.aKey);else for(var o=0,i=Array.from(t.sets);o<i.length;o++){var a=i[o];r.add(n.toKey(a))}if(n.bIsSet)r.add(n.bKey);else for(var c=0,s=Array.from(e.sets);c<s.length;c++){var l=s[c];r.add(n.toKey(l))}return Array.from(r).sort().join("&")}function Ce(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Se,o=new Map,i=s(Ae(t,r));try{for(i.s();!(n=i.n()).done;){var a,c=n.value,l=s(c.s);try{for(l.s();!(a=l.n()).done;){var u=a.value;o.has(u)?o.get(u).push(c):o.set(u,[c])}}catch(t){l.e(t)}finally{l.f()}}}catch(t){i.e(t)}finally{i.f()}return function(t,n){var i=Me(t,n,r);if(null!=i.done)return i.done;if(!i.aIsSet&&!i.bIsSet)return 0;if(i.aIsSet&&!i.bIsSet)return ke(n,i)?n.cardinality:0;if(!i.aIsSet&&i.bIsSet)return Ne(t,i)?t.cardinality:0;var a=o.get(i.aKey),c=o.get(i.bKey);return a&&c?a.length<c.length?a.reduce((function(t,e){return t+(e.sets.has(i.bKey)?e.cardinality:0)}),0):c.reduce((function(t,e){return t+(e.sets.has(i.aKey)?e.cardinality:0)}),0):e(t,n)}}function Le(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Se,r=new Map(Ae(t,n).map((function(t){return[t.key,t.cardinality]})));return function(t,o){var i=Me(t,o,n);if(null!=i.done)return i.done;if(i.aIsSet&&!i.bIsSet&&ke(o,i))return o.cardinality;if(!i.aIsSet&&i.bIsSet&&Ne(t,i))return t.cardinality;var a=Oe(t,o,i);return r.has(a)?r.get(a):e(t,o)}}function Ie(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Se,r=new Map(Ae(t,n).map((function(t){return[t.key,t.cardinality]})));return function(t,o){var i=Me(t,o,n);if(null!=i.done)return i.done;if(i.aIsSet&&!i.bIsSet&&ke(o,i))return t.cardinality;if(!i.aIsSet&&i.bIsSet&&Ne(t,i))return o.cardinality;var a=Oe(t,o,i);return r.has(a)?t.cardinality+o.cardinality-r.get(a):e(t,o)}}function je(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Se;if(0===t.length)return e;var r=t[0].type;if(t.some((function(t){return t.type!==r})))return e;switch(r){case"union":return Ie(t,e,n);case"intersection":return Le(t,e,n);case"distinctIntersection":return Ce(t,e,n)}return e}function Pe(t){if(0===t.length)return"";var e=t.length,n=t.flat();return"".concat(e,";").concat(function(t){if(0===t.length)return"";for(var e=[],n=t[0],r=1,o=1;o<t.length;o++){var i=t[o];i===n?r++:(r>1?e.push("".concat(n,"=").concat(r-1)):0===n?e.push(""):e.push(n.toString()),n=i,r=1)}return r>1?e.push("".concat(n,"=").concat(r)):0===n?e.push(""):e.push(n.toString()),e.join(",")}(n))}function Te(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.toElemKey,o=n.what,i=void 0===o?"intersection":o,a=n.compress,c=void 0===a?"auto":a,s=t.concat(e);function l(t){if(t.overlap)return t.overlap;var e=Kt(t.elems,r);return function(n){return n.overlap?n.overlap(t):e(n.elems)[i]}}var u=s.map((function(t,e){for(var n=l(t),r=[],o=e+1;o<s.length;o++)r.push(n(s[o]));return r}));if(u.pop(),"no"===c)return u;var f=Pe(u);if("yes"===c)return f;var d=JSON.stringify(u).length,h=f.length+2;return h<.6*d?f:u}var Fe=function(t,e,n){var r=t.length+n,o=e/Math.max(1,r),i=e-o*t.length,a=new Map(t.map((function(t,e){return[t,e]}))),c=o/(1+n),s=function(t){var e=a.get(t);if(null!=e)return i+o*e};return s.bandwidth=function(){return c},s};function ze(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=0;r<t.length-n;r+=n){var o=t[r],i=t[r+1];if(o<i){var a=o+e[r]/2,c=i-e[r+1]/2;if(a>c)return!0}else{var s=o-e[r]/2,l=i+e[r+1]/2;if(l>s)return!0}}return!1}function Re(t,e,n,r,o){var i=t[t.length-1];if(!i.label)for(var a=t.length-2;a>0;--a)if(t[a].label){i=t[a];break}if(i.value<e){var c=n(i.value),s=n(e);if(c<s)c+r(i.value)/2<s-r(e)/2&&t.push({value:e,label:o(e)});else{var l=c-r(i.value)/2;s+r(e)/2<l&&t.push({value:e,label:o(e)})}}return t}function qe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t.map((function(t,r){return{value:t,label:1===n||r%n==0?e(t):void 0}}))}function Be(t,e,n,r,o){var i=t.map((function(t){return e(t)})),a=t.map((function(t){return n(t)}));return ze(i,a)&&ze(i,a,2)?null:Re(qe(t,o),r,e,n,o)}function He(t){return t.toLocaleString()}function We(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=0;r<=t;r+=e)n.push(r);return n}function Ue(t,e,n,r){if(e<=0)return[];for(var o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:11,n=Math.max(0,Math.floor(Math.log10(t)-.5)),r=Math.pow(10,n),o=[1,2,5],i=o.map((function(t){return t*r}));n>0&&i.unshift(o[o.length-1]*Math.pow(10,n-1)),i.push(o[0]*Math.pow(10,n+1));var a=Math.ceil(t/e);return i.filter((function(e){return e>=a&&e<=t}))}(t,e),i=0;i<o.length;i++){var a=Be(We(t,o[i]),n,r,t,He);if(a)return a}return qe([0,t],He)}var De=function(t,e,n){var r=e[1]-e[0],o=t,i=function(t){var n=Math.max(0,Math.min(t,o))/o;return e[0]+n*r};return i.ticks=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;if("vertical"===n.orientation){var r=Math.ceil(1.4*n.fontSizeHint);return Ue(t,e+1,i,(function(){return r}))}var o=n.fontSizeHint/1.4;return Ue(t,e+1,i,(function(t){return Math.ceil(He(t).length*o)}))},i.tickFormat=function(){return He},i};function Ke(t){var e=["","k","M","G"],n=Math.max(0,Math.min(Math.floor(Math.log10(t)/3),e.length-1)),r=Math.round(t/Math.pow(10,3*n-1))/10;return"".concat(r.toLocaleString()).concat(e[n])}function Ve(t,e){for(var n=[],r=Math.pow(10,e),o=1;o<=t;o*=r)n.push(o);return n}function Ge(t,e){for(var n=[],r=1,o=0;r<=t;r*=10,o++){n.push({value:r,label:1===e||o%e==0?Ke(r):void 0});for(var i=r+r;i<10*r&&i<t;i+=r*e)n.push({value:i})}return n}function $e(t,e,n,r){if(e<=0)return[];for(var o=0,i=[1,2,5];o<i.length;o++){var a=i[o];if(Be(Ve(t,a),n,r,t,Ke))return Re(Ge(t,a),t,n,r,Ke)}return qe([0,t],Ke)}var Ye=function(t,e,n){var r=e[1]-e[0],o=t<1?1:Math.log10(t),i=function(t){var n=Math.max(0,Math.min(t,o)),i=n<=1?0:Math.log10(n)/o;return e[0]+i*r};return i.ticks=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;if("vertical"===n.orientation){var r=Math.ceil(1.4*n.fontSizeHint);return $e(t,e+1,i,(function(){return r}))}var o=n.fontSizeHint/1.4;return $e(t,e+1,i,(function(t){return Math.ceil(Ke(t).length*o)}))},i.tickFormat=function(){return Ke},i};function Qe(t){if(0===t.length)return"";for(var e=[],n=0,r=function(r){return r===n+1?e.push(t[n].toString()):r===n+2&&r<10?e.push("".concat(t[n],",").concat(t[n+1])):e.push("".concat(t[n],"+").concat(r-n-1)),r},o=1;o<t.length;o++){var i=t[o-1]+1;t[o]!==i&&(n=r(o),n=o)}return r(t.length),e.join(",")}function Je(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.sortAble,o=n.compress,i=void 0===o?"auto":o;if(0===t.length)return[];var a=t.map((function(t){return e(t)}));if("no"===i)return a;r&&a.sort((function(t,e){return t-e}));var c=Qe(a),s=JSON.stringify(a).length,l=c.length+2;return l<.6*s||s-l>50||"yes"===i&&l<s?c:a}function Xe(t,e){return e.color&&(t.color=e.color),t}function Ze(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({sortAble:!0},n),o=null!==(e=n.toKey)&&void 0!==e?e:Se,i=new Map(t.sets.map((function(t,e){return[o(t),e]}))),a=new Map(t.combinations.map((function(t,e){return[o(t),e]}))),c=function(e){if("set"===e.type)return{type:e.type,index:i.get(o(e))};var n=a.get(o(e));return null==n||n<0?Je(e.elems,t.toElemIndex,r):{type:e.type,index:n}},s=t.sets.map((function(t,e){return{key:o(t),i:e}}));return{sets:t.sets.map((function(e){return Xe({name:e.name,cardinality:e.cardinality,elems:Je(e.elems,t.toElemIndex,r)},e)})),combinations:"no"===n.compress?t.combinations.map((function(e){var n=new Set(Array.from(e.sets).map(o));return Xe({name:e.name,type:e.type,cardinality:e.cardinality,degree:e.degree,sets:s.filter((function(t){var e=t.key;return n.has(e)})).map((function(t){return t.i})),elems:Je(e.elems,t.toElemIndex,r)},e)})):void 0,combinationOptions:t.combinationOptions,selection:t.selection?Array.isArray(t.selection)?Je(t.selection,t.toElemIndex,r):c(t.selection):void 0,queries:t.queries.map((function(e){var n=Yt(e)?c(e.set):Je(Array.from(e.elems),t.toElemIndex,r);return{name:e.name,color:e.color,set:"string"==typeof n||Array.isArray(n)?void 0:n,elems:"string"==typeof n||Array.isArray(n)?n:void 0}}))}}function tn(t,e){return 1===t.length?t[0].name:"(".concat(t.map((function(t){return t.name})).join(fe[e]),")")}function en(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null!==(e=n.toKey)&&void 0!==e?e:Se,o=new Map(t.sets.map((function(t,e){return[r(t),e]}))),i=new Map(t.combinations.map((function(t,e){return[r(t),e]}))),a=function(e){if(ee(e)){if("set"===e.type)return{type:e.type,index:o.get(r(e))};var n=i.get(r(e));if(null!=n&&n>=0)return{type:e.type,index:n}}var a=Kt(ee(e)?e.elems:e);return t.sets.map((function(t){return a(t.elems).intersection})).concat(t.combinations.map((function(t){return a(t.elems).intersection})))},c=new Map(t.sets.map((function(t,e){return[r(t),e]}))),s=Te(t.sets,t.combinations,n),l="yes"===n.compress,u=function(e){var n=Array.from(e.sets).map((function(t){return c.get(r(t))})).sort((function(t,e){return t-e})),o={c:e.cardinality,s:n.reduce((function(t,e){return t+Math.pow(2,e)}),0)};return e.name!==tn(n.map((function(e){return t.sets[e]})),e.type)&&(o.n=e.name),"intersection"!==e.type&&(o.type=e.type[0]),e.color&&(o.cc=e.color),o};return{sets:l?t.sets.map((function(t){return{n:t.name,cc:t.color,c:t.cardinality}})):t.sets.map((function(t){return Xe({name:t.name,cardinality:t.cardinality},t)})),combinations:l?t.combinations.map(u):t.combinations.map((function(t){return Xe({name:t.name,cardinality:t.cardinality,type:t.type,sets:Array.from(t.sets).map((function(t){return c.get(r(t))})).sort((function(t,e){return t-e}))},t)})),overlaps:s,selection:t.selection?a(t.selection):void 0,queries:t.queries.map((function(e){if(Yt(e)){var n=a(e.set);return Array.isArray(n)?{name:e.name,color:e.color,overlaps:n}:{name:e.name,color:e.color,set:n}}var r=Kt(e.elems),o=t.sets.map((function(t){return r(t.elems).intersection})).concat(t.combinations.map((function(t){return r(t.elems).intersection})));return{name:e.name,color:e.color,overlaps:o}}))}}var nn={exports:{}};!function(t){var e=function(){var t=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function o(t,e){if(!r[t]){r[t]={};for(var n=0;n<t.length;n++)r[t][t.charAt(n)]=n}return r[t][e]}var i={compressToBase64:function(t){if(null==t)return"";var n=i._compress(t,6,(function(t){return e.charAt(t)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(t){return null==t?"":""==t?null:i._decompress(t.length,32,(function(n){return o(e,t.charAt(n))}))},compressToUTF16:function(e){return null==e?"":i._compress(e,15,(function(e){return t(e+32)}))+" "},decompressFromUTF16:function(t){return null==t?"":""==t?null:i._decompress(t.length,16384,(function(e){return t.charCodeAt(e)-32}))},compressToUint8Array:function(t){for(var e=i.compress(t),n=new Uint8Array(2*e.length),r=0,o=e.length;r<o;r++){var a=e.charCodeAt(r);n[2*r]=a>>>8,n[2*r+1]=a%256}return n},decompressFromUint8Array:function(e){if(null==e)return i.decompress(e);for(var n=new Array(e.length/2),r=0,o=n.length;r<o;r++)n[r]=256*e[2*r]+e[2*r+1];var a=[];return n.forEach((function(e){a.push(t(e))})),i.decompress(a.join(""))},compressToEncodedURIComponent:function(t){return null==t?"":i._compress(t,6,(function(t){return n.charAt(t)}))},decompressFromEncodedURIComponent:function(t){return null==t?"":""==t?null:(t=t.replace(/ /g,"+"),i._decompress(t.length,32,(function(e){return o(n,t.charAt(e))})))},compress:function(e){return i._compress(e,16,(function(e){return t(e)}))},_compress:function(t,e,n){if(null==t)return"";var r,o,i,a={},c={},s="",l="",u="",f=2,d=3,h=2,p=[],y=0,m=0;for(i=0;i<t.length;i+=1)if(s=t.charAt(i),Object.prototype.hasOwnProperty.call(a,s)||(a[s]=d++,c[s]=!0),l=u+s,Object.prototype.hasOwnProperty.call(a,l))u=l;else{if(Object.prototype.hasOwnProperty.call(c,u)){if(u.charCodeAt(0)<256){for(r=0;r<h;r++)y<<=1,m==e-1?(m=0,p.push(n(y)),y=0):m++;for(o=u.charCodeAt(0),r=0;r<8;r++)y=y<<1|1&o,m==e-1?(m=0,p.push(n(y)),y=0):m++,o>>=1}else{for(o=1,r=0;r<h;r++)y=y<<1|o,m==e-1?(m=0,p.push(n(y)),y=0):m++,o=0;for(o=u.charCodeAt(0),r=0;r<16;r++)y=y<<1|1&o,m==e-1?(m=0,p.push(n(y)),y=0):m++,o>>=1}0==--f&&(f=Math.pow(2,h),h++),delete c[u]}else for(o=a[u],r=0;r<h;r++)y=y<<1|1&o,m==e-1?(m=0,p.push(n(y)),y=0):m++,o>>=1;0==--f&&(f=Math.pow(2,h),h++),a[l]=d++,u=String(s)}if(""!==u){if(Object.prototype.hasOwnProperty.call(c,u)){if(u.charCodeAt(0)<256){for(r=0;r<h;r++)y<<=1,m==e-1?(m=0,p.push(n(y)),y=0):m++;for(o=u.charCodeAt(0),r=0;r<8;r++)y=y<<1|1&o,m==e-1?(m=0,p.push(n(y)),y=0):m++,o>>=1}else{for(o=1,r=0;r<h;r++)y=y<<1|o,m==e-1?(m=0,p.push(n(y)),y=0):m++,o=0;for(o=u.charCodeAt(0),r=0;r<16;r++)y=y<<1|1&o,m==e-1?(m=0,p.push(n(y)),y=0):m++,o>>=1}0==--f&&(f=Math.pow(2,h),h++),delete c[u]}else for(o=a[u],r=0;r<h;r++)y=y<<1|1&o,m==e-1?(m=0,p.push(n(y)),y=0):m++,o>>=1;0==--f&&(f=Math.pow(2,h),h++)}for(o=2,r=0;r<h;r++)y=y<<1|1&o,m==e-1?(m=0,p.push(n(y)),y=0):m++,o>>=1;for(;;){if(y<<=1,m==e-1){p.push(n(y));break}m++}return p.join("")},decompress:function(t){return null==t?"":""==t?null:i._decompress(t.length,32768,(function(e){return t.charCodeAt(e)}))},_decompress:function(e,n,r){var o,i,a,c,s,l,u,f=[],d=4,h=4,p=3,y="",m=[],v={val:r(0),position:n,index:1};for(o=0;o<3;o+=1)f[o]=o;for(a=0,s=Math.pow(2,2),l=1;l!=s;)c=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(c>0?1:0)*l,l<<=1;switch(a){case 0:for(a=0,s=Math.pow(2,8),l=1;l!=s;)c=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(c>0?1:0)*l,l<<=1;u=t(a);break;case 1:for(a=0,s=Math.pow(2,16),l=1;l!=s;)c=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(c>0?1:0)*l,l<<=1;u=t(a);break;case 2:return""}for(f[3]=u,i=u,m.push(u);;){if(v.index>e)return"";for(a=0,s=Math.pow(2,p),l=1;l!=s;)c=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(c>0?1:0)*l,l<<=1;switch(u=a){case 0:for(a=0,s=Math.pow(2,8),l=1;l!=s;)c=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(c>0?1:0)*l,l<<=1;f[h++]=t(a),u=h-1,d--;break;case 1:for(a=0,s=Math.pow(2,16),l=1;l!=s;)c=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(c>0?1:0)*l,l<<=1;f[h++]=t(a),u=h-1,d--;break;case 2:return m.join("")}if(0==d&&(d=Math.pow(2,p),p++),f[u])y=f[u];else{if(u!==h)return null;y=i+i.charAt(0)}m.push(y),f[h++]=i+y.charAt(0),i=y,0==--d&&(d=Math.pow(2,p),p++)}}};return i}();null!=t&&(t.exports=e)}(nn);var rn=nn.exports;function on(t){return Array.from(t.classList).find((function(t){return t.startsWith("root-")})).slice("root-".length)}function an(t,e){var n,r;return null!==(r=null===(n=t.querySelector("titleTextStyle-".concat(e)))||void 0===n?void 0:n.textContent)&&void 0!==r?r:"UpSetJS"}function cn(t,e){var n,r;return null!==(r=null===(n=t.querySelector("descTextStyle-".concat(e)))||void 0===n?void 0:n.textContent)&&void 0!==r?r:""}var sn={},ln=[],un={setLabel:"16px",axisTick:"10px",chartLabel:"16px",barLabel:"10px",legend:"10px",description:"16px",title:"24px",valueLabel:"12px",exportLabel:"10px"},fn=[.18,.12,.7],dn=[.6,.4],hn={type:"intersection",order:["cardinality:desc","name:asc"]},pn=Object.keys(un),yn=["axisTick","bar","barLabel","chartLabel","dot","legend","title","description","setLabel","set","valueLabel"],mn=["dump","png","share","svg","vega"],vn=[.7,.4],gn=[.15,.3],xn={sets:[],intersections:[],bb:{x:0,y:0,width:10,height:10}},bn={sets:[{cx:0,cy:0,r:5,text:{x:3.5,y:-4},align:"start",verticalAlign:"bottom"}],intersections:[{sets:[0],x1:0,y1:5,arcs:[{mode:"i",ref:0,x2:0,y2:-5,sweep:!1,large:!1},{mode:"i",ref:0,x2:0,y2:5,sweep:!1,large:!1}],text:{x:0,y:0}}],bb:{x:-5,y:-5,width:10,height:10}},_n={sets:[{cx:-4,cy:0,r:5,text:{x:-7.5,y:4},align:"end",verticalAlign:"top"},{cx:4,cy:0,r:5,text:{x:7.5,y:-4},align:"start",verticalAlign:"bottom"}],intersections:[{sets:[0],x1:0,y1:-3,arcs:[{mode:"i",ref:0,x2:0,y2:3,sweep:!1,large:!0},{mode:"o",ref:1,x2:0,y2:-3,sweep:!0,large:!1}],text:{x:-4,y:0}},{sets:[1],x1:0,y1:3,arcs:[{mode:"i",ref:1,x2:0,y2:-3,sweep:!1,large:!0},{mode:"o",ref:0,x2:0,y2:3,sweep:!0,large:!1}],text:{x:4,y:0}},{sets:[0,1],x1:0,y1:3,arcs:[{mode:"i",ref:0,x2:0,y2:-3,sweep:!1,large:!1},{mode:"i",ref:1,x2:0,y2:3,sweep:!1,large:!1}],text:{x:0,y:0}}],bb:{x:-9,y:-5,width:18,height:10}},wn={sets:[{cx:-3.464,cy:-2,r:5,text:{x:-7,y:-6},align:"end",verticalAlign:"bottom"},{cx:3.464,cy:-2,r:5,text:{x:7,y:-6},align:"start",verticalAlign:"bottom"},{cx:0,cy:4,r:5,text:{x:4,y:7.5},align:"start",verticalAlign:"top"}],intersections:[{sets:[0],x1:-4.855,y1:2.803,arcs:[{mode:"o",ref:2,x2:-1.39,y2:-.803,sweep:!0,large:!1},{mode:"o",ref:1,x2:0,y2:-5.606,sweep:!0,large:!1},{mode:"i",ref:0,x2:-4.855,y2:2.803,sweep:!1,large:!0}],text:{x:-4.216,y:-2.434}},{sets:[1],x1:0,y1:-5.606,arcs:[{mode:"o",ref:0,x2:1.39,y2:-.803,sweep:!0,large:!1},{mode:"o",ref:2,x2:4.855,y2:2.803,sweep:!0,large:!1},{mode:"i",ref:1,x2:0,y2:-5.606,sweep:!1,large:!0}],text:{x:4.216,y:-2.434}},{sets:[2],x1:-4.855,y1:2.803,arcs:[{mode:"o",ref:0,x2:0,y2:1.606,sweep:!1,large:!1},{mode:"o",ref:1,x2:4.855,y2:2.803,sweep:!1,large:!1},{mode:"i",ref:2,x2:-4.855,y2:2.803,sweep:!0,large:!0}],text:{x:0,y:4.869}},{sets:[0,1],x1:0,y1:-5.606,arcs:[{mode:"i",ref:1,x2:-1.39,y2:-.803,sweep:!1,large:!1},{mode:"o",ref:2,x2:1.39,y2:-.803,sweep:!0,large:!1},{mode:"i",ref:0,x2:0,y2:-5.606,sweep:!1,large:!1}],text:{x:0,y:-2.404}},{sets:[0,2],x1:-4.855,y1:2.803,arcs:[{mode:"i",ref:2,x2:-1.39,y2:-.803,sweep:!0,large:!1},{mode:"o",ref:1,x2:0,y2:1.606,sweep:!1,large:!1},{mode:"i",ref:0,x2:-4.855,y2:2.803,sweep:!0,large:!1}],text:{x:-2.082,y:1.202}},{sets:[1,2],x1:4.855,y1:2.803,arcs:[{mode:"i",ref:2,x2:1.39,y2:-.803,sweep:!1,large:!1},{mode:"o",ref:0,x2:0,y2:1.606,sweep:!0,large:!1},{mode:"i",ref:1,x2:4.855,y2:2.803,sweep:!1,large:!1}],text:{x:2.082,y:1.202}},{sets:[0,1,2],x1:1.39,y1:-.803,arcs:[{mode:"i",ref:0,x2:0,y2:1.606,sweep:!0,large:!1},{mode:"i",ref:1,x2:-1.39,y2:-.803,sweep:!0,large:!1},{mode:"i",ref:2,x2:1.39,y2:-.803,sweep:!0,large:!1}],text:{x:0,y:0}}],bb:{x:-8.464,y:-7,width:16.928,height:16}},Sn={sets:[{cx:.439,cy:-1.061,rx:2.5,ry:5,rotation:45,text:{x:4.5,y:-4.5},align:"start",verticalAlign:"bottom"},{cx:2.561,cy:1.061,rx:2.5,ry:5,rotation:45,text:{x:4,y:3.75},align:"start",verticalAlign:"top"},{cx:-2.561,cy:1.061,rx:2.5,ry:5,rotation:-45,text:{x:-4,y:3.7},align:"end",verticalAlign:"top"},{cx:-.439,cy:-1.061,rx:2.5,ry:5,rotation:-45,text:{x:-4.5,y:-4.5},align:"end",verticalAlign:"bottom"}],intersections:[{sets:[0],x1:0,y1:-3.94,arcs:[{ref:0,mode:"i",x2:4.328,y2:-2.828,sweep:!0,large:!1},{ref:1,mode:"o",x2:2.179,y2:-1.858,large:!1},{ref:3,mode:"o",x2:0,y2:-3.94,large:!1}],text:{x:2.914,y:-3.536}},{sets:[1],x1:4.328,y1:-2.828,arcs:[{ref:1,mode:"i",x2:0,y2:5.006,sweep:!0,large:!0},{ref:2,mode:"o",x2:1.328,y2:2.828},{ref:3,mode:"o",x2:3.108,y2:-.328},{ref:0,mode:"o",x2:4.328,y2:-2.828}],text:{x:5.036,y:-1.414}},{sets:[2],x1:0,y1:5.006,arcs:[{ref:2,mode:"i",x2:-4.328,y2:-2.828,sweep:!0,large:!0},{ref:3,mode:"o",x2:-3.108,y2:-.328},{ref:0,mode:"o",x2:-1.328,y2:2.828},{ref:1,mode:"o",x2:0,y2:5.006}],text:{x:-5.036,y:-1.414}},{sets:[3],x1:-4.328,y1:-2.828,arcs:[{ref:3,mode:"i",x2:0,y2:-3.94,sweep:!0,large:!1},{ref:0,mode:"o",x2:-2.179,y2:-1.858,large:!1},{ref:2,mode:"o",x2:-4.328,y2:-2.828,large:!1}],text:{x:-2.914,y:-3.536}},{sets:[0,1],x1:4.328,y1:-2.828,arcs:[{ref:1,mode:"i",x2:3.108,y2:-.328,sweep:!0,large:!1},{ref:3,mode:"o",x2:2.179,y2:-1.858,sweep:!1,large:!1},{ref:0,mode:"i",x2:4.328,y2:-2.828,sweep:!0,large:!1}],text:{x:3.205,y:-1.672}},{sets:[0,2],x1:-1.328,y1:2.828,arcs:[{ref:0,mode:"i",x2:-3.108,y2:-.328,sweep:!0,large:!1},{ref:3,mode:"o",x2:-.969,y2:1.755,large:!1},{ref:1,mode:"o",x2:-1.328,y2:2.828,large:!1}],text:{x:-2.212,y:1.591}},{sets:[0,3],x1:0,y1:-3.94,arcs:[{ref:3,mode:"i",x2:2.179,y2:-1.858,sweep:!0,large:!1},{ref:1,mode:"o",x2:0,y2:.188,sweep:!1,large:!1},{ref:2,mode:"o",x2:-2.179,y2:-1.858,sweep:!1,large:!1},{ref:0,mode:"i",x2:0,y2:-3.94,sweep:!0}],text:{x:0,y:-1.87}},{sets:[1,2],x1:1.328,y1:2.828,arcs:[{ref:2,mode:"i",x2:0,y2:5.006,sweep:!0,large:!1},{ref:1,mode:"i",x2:-1.328,y2:2.828,sweep:!0,large:!1},{ref:0,mode:"o",x2:0,y2:2.346,large:!1},{ref:3,mode:"o",x2:1.328,y2:2.828}],text:{x:0,y:3.393}},{sets:[1,3],x1:3.108,y1:-.328,arcs:[{ref:3,mode:"i",x2:1.328,y2:2.828,sweep:!0,large:!1},{ref:2,mode:"o",x2:.969,y2:1.755,large:!1},{ref:1,mode:"i",x2:3.108,y2:-.328,large:!1}],text:{x:2.212,y:1.591}},{sets:[2,3],x1:-3.108,y1:-.328,arcs:[{ref:3,mode:"i",x2:-4.328,y2:-2.828,sweep:!0,large:!1},{ref:2,mode:"i",x2:-2.179,y2:-1.858,sweep:!0,large:!1},{ref:0,mode:"o",x2:-3.108,y2:-.328,large:!1}],text:{x:-3.205,y:-1.672}},{sets:[0,1,2],x1:0,y1:2.346,arcs:[{ref:0,mode:"i",x2:-1.328,y2:2.828,sweep:!0,large:!1},{ref:1,mode:"i",x2:-.969,y2:1.755,sweep:!0,large:!1},{ref:3,mode:"o",x2:0,y2:2.346,large:!1}],text:{x:-.766,y:2.31}},{sets:[0,1,3],x1:2.179,y1:-1.858,arcs:[{ref:3,mode:"i",x2:3.108,y2:-.328,sweep:!0,large:!1},{ref:0,mode:"i",x2:.969,y2:1.755,sweep:!0,large:!1},{ref:2,mode:"o",x2:0,y2:.188,sweep:!1,large:!1},{ref:1,mode:"i",x2:2.179,y2:-1.858,sweep:!0}],text:{x:1.558,y:-.056}},{sets:[0,2,3],x1:-.969,y1:1.755,arcs:[{ref:3,mode:"i",x2:-3.108,y2:-.328,sweep:!0,large:!1},{ref:0,mode:"i",x2:-2.179,y2:-1.858,sweep:!0,large:!1},{ref:2,mode:"i",x2:0,y2:.188,sweep:!0,large:!1},{ref:1,mode:"o",x2:-.969,y2:1.755}],text:{x:-1.558,y:-.056}},{sets:[1,2,3],x1:1.328,y1:2.828,arcs:[{ref:3,mode:"i",x2:0,y2:2.346,sweep:!0,large:!1},{ref:0,mode:"o",x2:.969,y2:1.755,sweep:!1,large:!1},{ref:2,mode:"i",x2:1.328,y2:2.828,sweep:!0,large:!1}],text:{x:.766,y:2.31}},{sets:[0,1,2,3],x1:0,y1:.188,arcs:[{ref:2,mode:"i",x2:.969,y2:1.755,sweep:!0,large:!1},{ref:0,mode:"i",x2:0,y2:2.346,sweep:!0,large:!1},{ref:3,mode:"i",x2:-.969,y2:1.755,sweep:!0,large:!1},{ref:1,mode:"i",x2:0,y2:.188,sweep:!0}],text:{x:0,y:1.43}}],bb:{x:-6.5,y:-5,width:13,height:10}},En={sets:[{cx:.5,cy:-1,rx:2.5,ry:5,rotation:0,text:{x:2.25,y:-5},align:"start",verticalAlign:"bottom"},{cx:1.106,cy:.167,rx:2.5,ry:5,rotation:72,text:{x:4.5,y:1.5},align:"start",verticalAlign:"top"},{cx:.183,cy:1.103,rx:2.5,ry:5,rotation:144,text:{x:4,y:4},align:"start",verticalAlign:"bottom"},{cx:-.992,cy:.515,rx:2.5,ry:5,rotation:216,text:{x:-4.7,y:2},align:"end",verticalAlign:"bottom"},{cx:-.797,cy:-.785,rx:2.5,ry:5,rotation:288,text:{x:-4,y:-3.6},align:"end",verticalAlign:"bottom"}],intersections:[{sets:[0],x1:-1.653,y1:-3.541,arcs:[{ref:0,mode:"i",x2:2.857,y2:-2.666,sweep:!0,large:!1},{ref:1,mode:"o",x2:2.5,y2:-2.648,large:!1},{ref:3,mode:"o",x2:-.495,y2:-3.303,large:!1},{ref:4,mode:"o",x2:-1.653,y2:-3.541}],text:{x:.5,y:-5}},{sets:[1],x1:2.857,y1:-2.666,arcs:[{ref:1,mode:"i",x2:3.419,y2:1.893,sweep:!0,large:!1},{ref:2,mode:"o",x2:3.291,y2:1.559,large:!1},{ref:4,mode:"o",x2:2.988,y2:-1.492,large:!1},{ref:0,mode:"o",x2:2.857,y2:-2.666}],text:{x:4.91,y:-1.07}},{sets:[2],x1:3.419,y1:1.893,arcs:[{ref:2,mode:"i",x2:-.744,y2:3.837,sweep:!0,large:!1},{ref:3,mode:"o",x2:-.466,y2:3.612,large:!1},{ref:0,mode:"o",x2:2.342,y2:2.381,large:!1},{ref:1,mode:"o",x2:3.419,y2:1.893}],text:{x:2.534,y:4.339}},{sets:[3],x1:-.744,y1:3.837,arcs:[{ref:3,mode:"i",x2:-3.879,y2:.478,sweep:!0,large:!1},{ref:4,mode:"o",x2:-3.579,y2:.673,large:!1},{ref:1,mode:"o",x2:-1.54,y2:2.963,large:!1},{ref:2,mode:"o",x2:-.744,y2:3.837}],text:{x:-3.343,y:3.751}},{sets:[4],x1:-3.879,y1:.478,arcs:[{ref:4,mode:"i",x2:-1.653,y2:-3.541,sweep:!0,large:!1},{ref:0,mode:"o",x2:-1.746,y2:-3.196,large:!1},{ref:2,mode:"o",x2:-3.294,y2:-.549,large:!1},{ref:3,mode:"o",x2:-3.879,y2:.478}],text:{x:-4.601,y:-2.021}},{sets:[0,1],x1:2.5,y1:-2.648,arcs:[{ref:1,mode:"i",x2:2.857,y2:-2.666,sweep:!0,large:!1},{ref:0,mode:"i",x2:2.988,y2:-1.492,sweep:!0,large:!1},{ref:4,mode:"o",x2:2.572,y2:-1.839,large:!1},{ref:3,mode:"o",x2:2.5,y2:-2.648}],text:{x:2.741,y:-2.152}},{sets:[0,2],x1:2.342,y1:2.381,arcs:[{ref:0,mode:"i",x2:-.466,y2:3.612,sweep:!0,large:!1},{ref:3,mode:"o",x2:.257,y2:2.922,large:!1},{ref:1,mode:"o",x2:2.342,y2:2.381,large:!1}],text:{x:.5,y:3.5}},{sets:[0,3],x1:-.495,y1:-3.303,arcs:[{ref:3,mode:"i",x2:2.5,y2:-2.648,sweep:!0,large:!1},{ref:1,mode:"o",x2:1.51,y2:-2.515,large:!1},{ref:4,mode:"o",x2:-.495,y2:-3.303,large:!1}],text:{x:1.653,y:-3.125}},{sets:[0,4],x1:-1.653,y1:-3.541,arcs:[{ref:4,mode:"i",x2:-.495,y2:-3.303,sweep:!0,large:!1},{ref:3,mode:"o",x2:-.954,y2:-3.015,large:!1},{ref:2,mode:"o",x2:-1.746,y2:-3.196,large:!1},{ref:0,mode:"i",x2:-1.653,y2:-3.541}],text:{x:-1.199,y:-3.272}},{sets:[1,2],x1:3.291,y1:1.559,arcs:[{ref:2,mode:"i",x2:3.419,y2:1.893,sweep:!0,large:!1},{ref:1,mode:"i",x2:2.342,y2:2.381,sweep:!0,large:!1},{ref:0,mode:"o",x2:2.544,y2:1.878,large:!1},{ref:4,mode:"o",x2:3.291,y2:1.559}],text:{x:2.894,y:1.942}},{sets:[1,3],x1:-1.54,y1:2.963,arcs:[{ref:1,mode:"i",x2:-3.579,y2:.673,sweep:!0,large:!1},{ref:4,mode:"o",x2:-2.7,y2:1.147,large:!1},{ref:2,mode:"o",x2:-1.54,y2:2.963,large:!1}],text:{x:-3.174,y:1.557}},{sets:[1,4],x1:2.988,y1:-1.492,arcs:[{ref:4,mode:"i",x2:3.291,y2:1.559,sweep:!0,large:!1},{ref:2,mode:"o",x2:2.858,y2:.659,large:!1},{ref:0,mode:"o",x2:2.988,y2:-1.492,large:!1}],text:{x:3.483,y:.606}},{sets:[2,3],x1:-.466,y1:3.612,arcs:[{ref:3,mode:"i",x2:-.744,y2:3.837,sweep:!0,large:!1},{ref:2,mode:"i",x2:-1.54,y2:2.963,sweep:!0,large:!1},{ref:1,mode:"o",x2:-1,y2:3,large:!1},{ref:0,mode:"o",x2:-.466,y2:3.612}],text:{x:-.953,y:3.352}},{sets:[2,4],x1:-3.294,y1:-.549,arcs:[{ref:2,mode:"i",x2:-1.746,y2:-3.196,sweep:!0},{ref:0,mode:"o",x2:-1.925,y2:-2.213},{ref:3,mode:"o",x2:-3.294,y2:-.549}],text:{x:-2.462,y:-2.538}},{sets:[3,4],x1:-3.579,y1:.673,arcs:[{ref:4,mode:"i",x2:-3.879,y2:.478,sweep:!0,large:!1},{ref:3,mode:"i",x2:-3.294,y2:-.549,sweep:!0,large:!1},{ref:2,mode:"o",x2:-3.162,y2:-.024,large:!1},{ref:1,mode:"o",x2:-3.579,y2:.673}],text:{x:-3.483,y:.13}},{sets:[0,1,2],x1:2.544,y1:1.878,arcs:[{ref:0,mode:"i",x2:2.342,y2:2.381,sweep:!0,large:!1},{ref:1,mode:"i",x2:.257,y2:2.922,sweep:!0,large:!1},{ref:3,mode:"o",x2:.983,y2:2.049,large:!1},{ref:4,mode:"o",x2:2.544,y2:1.878}],text:{x:1.457,y:2.331}},{sets:[0,1,3],x1:1.51,y1:-2.515,arcs:[{ref:1,mode:"i",x2:2.5,y2:-2.648,sweep:!0,large:!1},{ref:3,mode:"i",x2:2.572,y2:-1.839,sweep:!0,large:!1},{ref:4,mode:"o",x2:1.51,y2:-2.515,large:!1}],text:{x:2.194,y:-2.334}},{sets:[0,1,4],x1:2.572,y1:-1.839,arcs:[{ref:4,mode:"i",x2:2.988,y2:-1.492,sweep:!0,large:!1},{ref:0,mode:"i",x2:2.858,y2:.659,sweep:!0,large:!1},{ref:2,mode:"o",x2:2.253,y2:-.302,large:!1},{ref:3,mode:"o",x2:2.572,y2:-1.839}],text:{x:2.667,y:-.665}},{sets:[0,2,3],x1:.257,y1:2.922,arcs:[{ref:3,mode:"i",x2:-.466,y2:3.612,sweep:!0,large:!1},{ref:0,mode:"i",x2:-1,y2:3,sweep:!0,large:!1},{ref:1,mode:"o",x2:.257,y2:2.922,large:!1}],text:{x:-.403,y:3.178}},{sets:[0,2,4],x1:-1.746,y1:-3.196,arcs:[{ref:2,mode:"i",x2:-.954,y2:-3.015,sweep:!0,large:!1},{ref:3,mode:"o",x2:-1.925,y2:-2.213,sweep:!1,large:!1},{ref:0,mode:"i",x2:-1.746,y2:-3.196,sweep:!0,large:!1}],text:{x:-1.542,y:-2.808}},{sets:[0,3,4],x1:-.495,y1:-3.303,arcs:[{ref:4,mode:"i",x2:1.51,y2:-2.515,sweep:!0,large:!1},{ref:1,mode:"o",x2:.409,y2:-2.236,large:!1},{ref:2,mode:"o",x2:-.954,y2:-3.015,large:!1},{ref:3,mode:"i",x2:-.495,y2:-3.303}],text:{x:.192,y:-2.742}},{sets:[1,2,3],x1:-1.54,y1:2.963,arcs:[{ref:2,mode:"i",x2:-2.7,y2:1.147,sweep:!0,large:!1},{ref:4,mode:"o",x2:-1.645,y2:1.568,large:!1},{ref:0,mode:"o",x2:-1,y2:3,large:!1},{ref:1,mode:"i",x2:-1.54,y2:2.963}],text:{x:-1.767,y:2.106}},{sets:[1,2,4],x1:2.858,y1:.659,arcs:[{ref:2,mode:"i",x2:3.291,y2:1.559,sweep:!0,large:!1},{ref:4,mode:"i",x2:2.544,y2:1.878,sweep:!0,large:!1},{ref:0,mode:"o",x2:2.858,y2:.659,large:!1}],text:{x:2.898,y:1.365}},{sets:[1,3,4],x1:-2.7,y1:1.147,arcs:[{ref:4,mode:"i",x2:-3.579,y2:.673,sweep:!0,large:!1},{ref:1,mode:"i",x2:-3.162,y2:-.024,sweep:!0,large:!1},{ref:2,mode:"o",x2:-2.7,y2:1.147,large:!1}],text:{x:-3.147,y:.599}},{sets:[2,3,4],x1:-3.294,y1:-.549,arcs:[{ref:3,mode:"i",x2:-1.925,y2:-2.213,sweep:!0,large:!1},{ref:0,mode:"o",x2:-2,y2:-1.08,large:!1},{ref:1,mode:"o",x2:-3.162,y2:-.024,large:!1},{ref:2,mode:"i",x2:-3.294,y2:-.549}],text:{x:-2.548,y:-1.029}},{sets:[0,1,2,3],x1:.983,y1:2.049,arcs:[{ref:3,mode:"i",x2:.257,y2:2.922,sweep:!0,large:!1},{ref:1,mode:"i",x2:-1,y2:3,sweep:!0,large:!1},{ref:0,mode:"i",x2:-1.645,y2:1.568,sweep:!0,large:!1},{ref:4,mode:"o",x2:.983,y2:2.049}],text:{x:-.407,y:2.31}},{sets:[0,1,2,4],x1:2.253,y1:-.302,arcs:[{ref:2,mode:"i",x2:2.858,y2:.659,sweep:!0,large:!1},{ref:0,mode:"i",x2:2.544,y2:1.878,sweep:!0,large:!1},{ref:4,mode:"i",x2:.983,y2:2.049,sweep:!0,large:!1},{ref:3,mode:"o",x2:2.253,y2:-.302}],text:{x:2.071,y:1.101}},{sets:[0,1,3,4],x1:1.51,y1:-2.515,arcs:[{ref:4,mode:"i",x2:2.572,y2:-1.839,sweep:!0,large:!1},{ref:3,mode:"i",x2:2.253,y2:-.302,sweep:!0,large:!1},{ref:2,mode:"o",x2:.409,y2:-2.236,sweep:!1,large:!1},{ref:1,mode:"i",x2:1.51,y2:-2.515,sweep:!0}],text:{x:1.687,y:-1.63}},{sets:[0,2,3,4],x1:-2,y1:-1.08,arcs:[{ref:0,mode:"i",x2:-1.925,y2:-2.213,sweep:!0,large:!1},{ref:3,mode:"i",x2:-.954,y2:-3.015,sweep:!0,large:!1},{ref:2,mode:"i",x2:.409,y2:-2.236,sweep:!0,large:!1},{ref:1,mode:"o",x2:-2,y2:-1.08}],text:{x:-1.028,y:-2.108}},{sets:[1,2,3,4],x1:-1.645,y1:1.568,arcs:[{ref:4,mode:"i",x2:-2.7,y2:1.147,sweep:!0,large:!1},{ref:2,mode:"i",x2:-3.162,y2:-.024,sweep:!0,large:!1},{ref:1,mode:"i",x2:-2,y2:-1.08,sweep:!0,large:!1},{ref:0,mode:"o",x2:-1.645,y2:1.568}],text:{x:-2.323,y:.327}},{sets:[0,1,2,3,4],x1:.409,y1:-2.236,arcs:[{ref:2,mode:"i",x2:2.253,y2:-.302,sweep:!0,large:!1},{ref:3,mode:"i",x2:.983,y2:2.049,sweep:!0,large:!1},{ref:4,mode:"i",x2:-1.645,y2:1.568,sweep:!0,large:!1},{ref:0,mode:"i",x2:-2,y2:-1.08,sweep:!0},{ref:1,mode:"i",x2:.409,y2:-2.236,sweep:!0}],text:{x:0,y:0}}],bb:{x:-5.5,y:-6,width:11.6,height:11.8}};function Mn(t){return"number"==typeof t.rx}var kn={maxSets:5,compute:function(t,e,n,r){return function(t,e,n){var r=[xn,bn,_n,wn,Sn,En],o=r[Math.min(r.length-1,t)],i=Math.min(e/o.bb.width,n/o.bb.height),a=i*-o.bb.x+(e-i*o.bb.width)/2,c=i*-o.bb.y+(n-i*o.bb.height)/2,s=function(t){return a+i*t},l=function(t){return c+i*t};return{sets:o.sets.map((function(t){return Object.assign({},t,{cx:s(t.cx),cy:l(t.cy),text:{x:s(t.text.x),y:l(t.text.y)}},Mn(t)?{rx:t.rx*i,ry:t.ry*i}:{r:t.r*i})})),intersections:o.intersections.map((function(t){return{text:{x:s(t.text.x),y:l(t.text.y)},x1:s(t.x1),y1:l(t.y1),sets:t.sets,arcs:t.arcs.map((function(t){return Object.assign({},t,{x2:s(t.x2),y2:l(t.y2)})}))}}))}}(t.length,n,r)}};var Nn={selectionColor:"#ffa500",color:"#000000",hasSelectionColor:"",opacity:1,hasSelectionOpacity:-1,textColor:"#000000",hoverHintColor:"#cccccc",notMemberColor:"#d3d3d3",alternatingBackgroundColor:"rgba(0,0,0,0.05)",valueTextColor:"#000000",strokeColor:"#000000",backgroundColor:"#ffffff",filled:!1},An={selectionColor:"#ffa500",color:"#cccccc",hasSelectionColor:"",opacity:1,hasSelectionOpacity:-1,textColor:"#ffffff",hoverHintColor:"#d9d9d9",notMemberColor:"#666666",alternatingBackgroundColor:"rgba(255, 255, 255, 0.2)",valueTextColor:"#ffffff",strokeColor:"#ffffff",backgroundColor:"#303030",filled:!1},On={selectionColor:"#4c78a8",color:"#4c78a8",hasSelectionColor:"#c9d6e5",opacity:1,hasSelectionOpacity:-1,textColor:"#000000",hoverHintColor:"#cccccc",notMemberColor:"#d3d3d3",alternatingBackgroundColor:"rgba(0,0,0,0.05)",valueTextColor:"#000000",strokeColor:"#000000",backgroundColor:"#ffffff",filled:!0};function Cn(t){return"vega"===t?On:"dark"===t?An:Nn}function Ln(t){return Dt.createElement("style",null,t)}function In(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Cn(e.theme);return Object.assign(t,{queryLegend:null!=e.queries&&e.queries.length>0,theme:"light",padding:20,selection:null,title:"",description:"",fontFamily:"sans-serif",queries:ln,exportButtons:!0,className:"",fontSizes:un,classNames:sn,style:sn,styles:sn,toKey:Se,tooltips:!0,styleFactory:Ln},r,e,n,e.fontSizes?{fontSizes:Object.assign({},un,e.fontSizes)}:sn)}function jn(t){return t.toLocaleString()}function Pn(t){return function(t){return In({barPadding:.3,dotPadding:.7,combinations:hn,combinationName:null==t.combinations||(e=t.combinations,Array.isArray(e))||"union"!==t.combinations.type?"Intersection Size":"Union Size",barLabelOffset:2,setNameAxisOffset:"auto",combinationNameAxisOffset:"auto",setName:"Set Size",widthRatios:fn,heightRatios:dn,setLabelAlignment:"center",numericScale:"linear",bandScale:"band",childrenFactories:sn,setAddons:ln,combinationAddons:ln,setAddonPadding:1,combinationAddonPadding:1,emptySelection:!0},t);var e}(t)}function Tn(t,e){var n=t.cloneNode(!0);return n.style.backgroundColor=Cn(t.dataset.theme).backgroundColor,e&&Array.from(n.querySelectorAll(e)).forEach((function(t){return t.remove()})),(new XMLSerializer).serializeToString(n)}function Fn(t,e){var n=e.type,r=void 0===n?"png":n,o=e.title,i=e.toRemove,a=new Blob([Tn(t,i)],{type:"image/svg+xml;charset=utf-8"}),c=on(t),s=null!=o?o:an(t,c),l=URL.createObjectURL(a);return"svg"===r?(zn(l,"".concat(s,".").concat(r),t.ownerDocument),URL.revokeObjectURL(l),Promise.resolve()):function(t,e){var n=e.ownerDocument.createElement("canvas"),r=e.getBoundingClientRect();n.width=r.width,n.height=r.height;var o=n.getContext("2d"),i=new Image(n.width,n.height);return new Promise((function(e){i.onload=function(){o.drawImage(i,0,0);var t=n.toDataURL("image/png");e(t)},i.src=t}))}(l,t).then((function(e){zn(e,"".concat(s,".").concat(r),t.ownerDocument),URL.revokeObjectURL(l)}))}function zn(t,e,n){var r=n.createElement("a");r.href=t,r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.download=e,n.body.appendChild(r),r.click(),r.remove()}function Rn(t,e){var n,r,o,i,a,c=null!==(o=t.getComputedStyle||(null===(r=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===r?void 0:r.getComputedStyle))&&void 0!==o?o:window.getComputedStyle,s=on(t),l=null!=e?e:an(t,s),u=Array.from(t.querySelectorAll("[data-upset=sets] [data-cardinality]")).map((function(t){return{name:t.querySelector("text.setTextStyle-".concat(s)).textContent,cardinality:Number.parseInt(t.dataset.cardinality,10)}})).reverse(),f=-Number.parseFloat(t.querySelector(".sBarTextStyle-".concat(s)).getAttribute("dx")),d=c(t.querySelector(".fillPrimary-".concat(s))).fill,h=c(t.querySelector(".fillNotMember-".concat(s))).fill,p=c(t.querySelector("text")).fill,y=t.querySelector(".cChartTextStyle-".concat(s)).textContent,m=t.querySelector(".sChartTextStyle-".concat(s)).textContent,v=Array.from(t.querySelectorAll("[data-upset=cs] [data-cardinality]")).map((function(t){return{name:t.querySelector("text.hoverBarTextStyle-".concat(s)).textContent,cardinality:Number.parseInt(t.dataset.cardinality,10),sets:Array.from(t.querySelectorAll(".fillPrimary-".concat(s," > title"))).map((function(t){return t.textContent}))}})),g=function(t){return Number.parseFloat(t.getAttribute("transform").match(/([\d.]+),/)[1])},x=t.querySelector("[data-upset=base]"),b=g(x),_=g(t.querySelector("[data-upset=csaxis]")),w=Number.parseFloat(x.querySelector("g").firstElementChild.children[1].getAttribute("x2")),S=function(t){return Number.parseFloat(t.getAttribute("transform").match(/,([\d.]+)/)[1])}(t.querySelector("[data-upset=setaxis]")),E=Number.parseFloat(t.querySelector("defs rect").getAttribute("width")),M=Number.parseFloat(t.querySelector("defs rect").getAttribute("height")),k=Number.parseFloat(t.querySelector("[data-cardinality] circle.fillPrimary-".concat(s)).getAttribute("r")),N=null!=t.querySelector("[data-upset=sets-s] [data-cardinality]"),A=null!=t.querySelector("[data-upset=sets-q] [data-cardinality]"),O=N||A,C="orange";O&&(Array.from(t.querySelectorAll("[data-upset=sets-".concat(N?"s]":"q]:first-of-type"," [data-cardinality]"))).forEach((function(t){var e=u.length-Number.parseInt(t.dataset.i,10)-1;u[e].selection=Number.parseInt(t.dataset.cardinality,10)})),Array.from(t.querySelectorAll("[data-upset=cs-".concat(N?"s]":"q]:first-of-type"," [data-cardinality]"))).forEach((function(t){var e=Number.parseInt(t.dataset.i,10);v[e].selection=Number.parseInt(t.dataset.cardinality,10)})),C=c(t.querySelector("[data-upset=sets-".concat(N?"s":"q","] [data-cardinality]"))).fill);var L=Number.parseInt(null!==(a=null===(i=t.querySelector("[data-upset=cs-ss]"))||void 0===i?void 0:i.dataset.i)&&void 0!==a?a:"-1",10),I=L>=0?{field:"partOf",oneOf:[1,2]}:{field:"partOf",equal:1};return{$schema:"https://vega.github.io/schema/vega-lite/v4.json",title:l,description:cn(t,s),datasets:{sets:u,combinations:v.map((function(t,e){return Object.assign({},t,{partOf:L===e?2:1,nsets:[""]})})).concat(v.map((function(t){return{name:t.name,cardinality:t.cardinality,partOf:0,sets:[""],nsets:u.filter((function(e){return!t.sets.includes(e.name)})).map((function(t){return t.name}))}})))},vconcat:[{hconcat:[{mark:"bar",width:_+E-40,height:S},{width:w,height:S,data:{name:"combinations"},transform:[{filter:I}],layer:[{mark:{type:"bar",tooltip:!0}},{mark:{type:"text",align:"center",baseline:"bottom",dy:-f},encoding:{text:{field:"cardinality",type:"quantitative"}}},O&&{mark:{type:"bar",fill:C,tooltip:!0},encoding:{y:{field:"selection",type:"quantitative"}}}].filter(Boolean),encoding:{x:{field:"name",type:"ordinal",axis:null,sort:null},y:{field:"cardinality",type:"quantitative",axis:{grid:!1},title:y}}}]},{hconcat:[{width:_,height:M,data:{name:"sets"},layer:[{mark:{type:"bar",tooltip:!0}},{mark:{type:"text",align:"right",baseline:"middle",dx:-f},encoding:{text:{field:"cardinality",type:"quantitative"}}},O&&{mark:{type:"bar",fill:C,tooltip:!0},encoding:{x:{field:"selection",type:"quantitative"}}}].filter(Boolean),encoding:{y:{field:"name",type:"ordinal",axis:null,sort:null},x:{field:"cardinality",type:"quantitative",title:m,sort:"descending",axis:{grid:!1}}}},{data:{name:"sets"},width:E,height:M,mark:{type:"text",align:"center",baseline:"middle",fontSize:Number.parseInt(c(t.querySelector(".setTextStyle-".concat(s))).fontSize,10)},encoding:{y:{field:"name",type:"ordinal",axis:null,sort:null},text:{field:"name",type:"ordinal"}}},{width:w,height:M,data:{name:"combinations"},transform:[{flatten:["sets"],as:["has_set"]},{flatten:["nsets"],as:["has_not_set"]},{calculate:"datum.has_set+datum.has_not_set",as:"set"}],layer:[{mark:{type:"circle",size:k*k*Math.PI,tooltip:!0},encoding:{color:{field:"partOf",type:"nominal",legend:null,scale:{range:[h,d].concat(L>=0?[C]:[])}},y:{field:"set",type:"ordinal",axis:null,sort:null,scale:{domain:u.map((function(t){return t.name}))}}}},{mark:"rule",transform:[{filter:I},{calculate:"datum.sets[datum.sets.length -1]",as:"set_end"}],encoding:Object.assign({y:{field:"sets[0]",type:"ordinal",axis:null,sort:null},y2:{field:"set_end"}},L<0?{}:{color:{field:"partOf",type:"nominal",legend:null,scale:{range:[d,C]}}})}],encoding:{x:{field:"name",type:"ordinal",axis:null,sort:null}}}]}],config:{padding:b,background:Cn(t.dataset.theme).backgroundColor,concat:{spacing:0},view:{stroke:null},bar:{fill:d},circle:{opacity:1},rule:{stroke:d,strokeWidth:Number.parseInt(c(t.querySelector("[data-upset=cs] [data-cardinality] line")).strokeWidth,10)},axis:{labelColor:p,labelFontSize:Number.parseInt(c(t.querySelector(".axisTextStyle-".concat(s))).fontSize,10),titleColor:p,titleFontSize:Number.parseInt(c(t.querySelector(".cChartTextStyle-".concat(s))).fontSize,10)},title:{color:p},text:{fill:p,fontSize:Number.parseInt(c(t.querySelector(".sBarTextStyle-".concat(s))).fontSize,10)}}}}var qn=["bandScale","numericScale"].concat(["selectionColor","color","textColor","hoverHintColor","notMemberColor","alternatingBackgroundColor","hasSelectionColor","hasSelectionOpacity","opacity","strokeColor","valueTextColor"],["padding","barPadding","dotPadding","widthRatios","heightRatios"],["fontSizes","combinationName","setName","barLabelOffset","setNameAxisOffset","combinationNameAxisOffset","theme","fontFamily","emptySelection","exportButtons","queryLegend"]);function Bn(t){var e,n=Pn({width:0,height:0,sets:null!==(e=t.sets)&&void 0!==e?e:[],combinations:t.combinations,theme:t.theme}),r={};return qn.forEach((function(e){var o=t[e],i=n[e];if("theme"!==e||"light"===o){if(null!=o&&o!==i)if("fontSizes"===e){var a=!0,c={};pn.forEach((function(t){var e=o[t];e!==i[t]&&(c[t]=e,a=!1)})),a||(r[e]=c)}else r[e]=o}else r[e]=o})),r}function Hn(t,e,n,r,o){return Object.assign({$schema:"https://upset.js.org/schema.1.0.0.json",name:"string"==typeof n.title?n.title:"UpSetJS",description:"string"==typeof n.description?n.description:"",mode:o,author:r,elements:e,attrs:[],props:Bn(n)},t)}function Wn(t,e,n,r){return Object.assign({$schema:"https://upset.js.org/schema-static.1.0.0.json",name:"string"==typeof e.title?e.title:"UpSetJS",description:"string"==typeof e.description?e.description:"",mode:r,author:n,props:Bn(e)},t)}function Un(t,e){var n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,a=[],c=new Map,s=function(t){return c.has(t)?c.get(t):(c.set(t,a.length),a.push(t),a.length-1)},l=Ze({sets:t.sets,queries:null!==(r=null===(n=t.queries)||void 0===n?void 0:n.filter((function(t){return Gt(t)||Yt(t)})))&&void 0!==r?r:[],toElemIndex:s,selection:t.selection&&ee(t.selection)?t.selection:void 0,combinations:e.cs.v,combinationOptions:Array.isArray(t.combinations)?{}:t.combinations},{compress:o?"yes":"no"});return Hn(l,a,t,void 0,i)}function Dn(t,e,n,r){var o=Un(e,n,!1,r),i=URL.createObjectURL(new Blob([JSON.stringify(o,null,2)],{type:"application/json"}));zn(i,"".concat(o.name,".json"),t.ownerDocument),URL.revokeObjectURL(i)}function Kn(t,e,n){var r=Un(t,e,!0,n);delete r.$schema;var o=rn.compressToEncodedURIComponent(JSON.stringify(r)),i=new URL("https://upset.js.org/app/embed.html");if(i.searchParams.set("p",o),i.toString().length<4096)return window.open(i.toString(),"_blank"),!0;var a=function(t,e){var n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,a=en({sets:t.sets,queries:null!==(r=null===(n=t.queries)||void 0===n?void 0:n.filter((function(t){return Gt(t)||Yt(t)})))&&void 0!==r?r:[],selection:t.selection&&ee(t.selection)?t.selection:void 0,combinations:e.cs.v},{compress:o?"yes":"no"});return Wn(a,t,void 0,i)}(t,e,!0,n);delete a.$schema;var c=rn.compressToEncodedURIComponent(JSON.stringify(a));if(i.searchParams.set("p",c),i.toString().length<4096)return window.open(i.toString(),"_blank"),!0;i.searchParams.delete("p");var s=window.open(i.toString(),"_blank");return null==s||s.addEventListener("load",(function(){null==s||s.postMessage(r,i.origin)})),!1}function Vn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")}function Gn(t){return"upset-".concat(Math.random().toString(36).slice(4))}function $n(t){return null!=t&&!Array.isArray(t)}function Yn(t,e){var n=Kt(t,e);return function(t){return n(t.elems).intersection}}function Qn(){return-1}function Jn(t,e,n){if(!t)return Zn;if("function"==typeof t)return t;if(Array.isArray(t))return Yn(t,n);var r=t;if(r.overlap)return r.overlap.bind(r);var o=null;return function(t){if(t.overlap)return t.overlap(r);var i=e(t,r);return i>=0?i:(o||(o=Yn(r.elems,n)),o(t))}}function Xn(t){var e;return Array.isArray(t)?"Array(".concat(t.length,")"):"function"==typeof t?"?":null===(e=t)||void 0===e?void 0:e.name}function Zn(){return 0}function tr(t){return null==t?10:t.endsWith("pt")?Math.floor(4/3*Number.parseInt(t,10)):Number.parseInt(t,10)}function er(t){return"linear"===t?De:"log"===t?Ye:t}function nr(t){return Array.isArray(t)}function rr(t){var e=t.transform,n=t.styleId,r=t.exportButtons,o=t.exportChart;if(!r)return null;var i=0,a=[];return!0!==r&&!1===r.svg||(i+=26,a.push(Dt.createElement("g",{key:"svg",className:"exportButton-".concat(n),onClick:o,"data-type":"svg",transform:"translate(-".concat(i,", 0)")},Dt.createElement("title",null,"Download SVG Image"),Dt.createElement("rect",{y:-9,width:26,height:11,rx:2,ry:2}),Dt.createElement("text",{className:"exportTextStyle-".concat(n),x:13},"SVG"))),i+=2),!0!==r&&!1===r.png||(i+=26,a.push(Dt.createElement("g",{key:"png",className:"exportButton-".concat(n),onClick:o,"data-type":"png",transform:"translate(-".concat(i,", 0)")},Dt.createElement("title",null,"Download PNG Image"),Dt.createElement("rect",{y:-9,width:26,height:11,rx:2,ry:2}),Dt.createElement("text",{className:"exportTextStyle-".concat(n),x:13},"PNG"))),i+=2),!0!==r&&!1===r.vega||(i+=34,a.push(Dt.createElement("g",{key:"vega",className:"exportButton-".concat(n),onClick:o,"data-type":"vega",transform:"translate(-".concat(i,", 0)")},Dt.createElement("title",null,"Download VEGA-Lite Specification"),Dt.createElement("rect",{y:-9,width:34,height:11,rx:2,ry:2}),Dt.createElement("text",{className:"exportTextStyle-".concat(n),x:17},"VEGA"))),i+=2),!0!==r&&!1===r.dump||(i+=34,a.push(Dt.createElement("g",{key:"dump",className:"exportButton-".concat(n),onClick:o,"data-type":"dump",transform:"translate(-".concat(i,", 0)")},Dt.createElement("title",null,"Download UpSet.js JSON Dump"),Dt.createElement("rect",{y:-9,width:34,height:11,rx:2,ry:2}),Dt.createElement("text",{className:"exportTextStyle-".concat(n),x:17},"DUMP"))),i+=2),!0!==r&&!1===r.share||(i+=42,a.push(Dt.createElement("g",{key:"share",className:"exportButton-".concat(n),onClick:o,"data-type":"share",transform:"translate(-".concat(i,", 0)")},Dt.createElement("title",null,"Open a shareable URL"),Dt.createElement("rect",{y:-9,width:42,height:11,rx:2,ry:2}),Dt.createElement("text",{className:"exportTextStyle-".concat(n),x:21},"SHARE"))),i+=2),Dt.createElement("g",{className:"exportButtons-".concat(n),transform:e},a)}var or=Dt.memo((function(t){var e=t.queries,n=t.x,r=t.style,o=t.data;return Dt.createElement("text",{transform:"translate(".concat(n,",4)"),style:r.styles.legend,className:Vn("legendTextStyle-".concat(r.id),r.classNames.legend)},e.map((function(t,e){var n=null;return Yt(t)?n=t.set.cardinality:Gt(t)&&(n=t.elems instanceof Set?t.elems.size:t.elems.length),Dt.createElement(Dt.Fragment,{key:t.name},Dt.createElement("tspan",{className:"fillQ".concat(e,"-").concat(o.id)},"  ⬤ "),Dt.createElement("tspan",null,t.name,null!=n?": ".concat(o.sets.format(n)):""))})))})),ir=Dt.memo((function(t){var e=t.pos,n=t.spacing,r=t.tickSizeInner,o=t.orient,i=t.name,a=t.style,c="top"===o||"left"===o?-1:1;return Dt.createElement("g",{transform:"translate(0, ".concat(e+.5,")")},i&&Dt.createElement("text",{x:c*n,dy:"0.32em",className:Vn("axisTextStyle-".concat(a.id),"right"===o?"startText-".concat(a.id):"endText-".concat(a.id),a.classNames.axisTick),style:a.styles.axisTick},i),Dt.createElement("line",{x2:c*r,className:"axisLine-".concat(a.id)}))})),ar=Dt.memo((function(t){var e=t.pos,n=t.name,r=t.spacing,o=t.orient,i=t.tickSizeInner,a=t.style,c="top"===o||"left"===o?-1:1;return Dt.createElement("g",{transform:"translate(".concat(e+.5,", 0)")},n&&Dt.createElement("text",{y:c*r,dy:"top"===o?"0em":"0.71em",className:Vn("axisTextStyle-".concat(a.id),a.classNames.axisTick),style:a.styles.axisTick},n),Dt.createElement("line",{y2:c*i,className:"axisLine-".concat(a.id)}))}));function cr(t){var e=t.scale,n=t.orient,r=t.tickSizeInner,o=void 0===r?6:r,i=t.tickSizeOuter,a=void 0===i?6:i,c=t.tickPadding,s=void 0===c?3:c,l=t.size,u=t.start,f=t.style,d=t.transform,h=Math.max(o,0)+s,p=u,y=l,m="top"===n||"left"===n?-1:1,v="left"===n||"right"===n?ir:ar,g=e.ticks().map((function(t){return"number"==typeof t?{value:t,label:t.toLocaleString()}:t}));return Dt.createElement("g",{transform:d},g.map((function(t){return Dt.createElement(v,{key:t.value,pos:e(t.value),name:t.label,spacing:h,tickSizeInner:o,orient:n,style:f})})),Dt.createElement("path",{className:"axisLine-".concat(f.id),d:"left"===n||"right"===n?a?"M".concat(m*a,",").concat(p,"H0.5V").concat(y,"H").concat(m*a):"M0.5,".concat(p,"V").concat(y):a?"M".concat(p,",").concat(m*a,"V0.5H").concat(y,"V").concat(m*a):"M".concat(p,",0.5H").concat(y)}))}var sr=Dt.memo((function(t){var e=t.width,n=t.text,r=t.dy,o=t.x,a=t.style,c=t.className,s=at(null),l=i(rt("string"==typeof n?[n]:[]),2),u=l[0],f=l[1];return it((function(){f("string"==typeof n?[n]:[])}),[n]),it((function(){if(s.current&&!(s.current.childElementCount>0)&&"string"==typeof n&&"function"==typeof s.current.getComputedTextLength){for(var t=s.current.getComputedTextLength(),r=[],o=e,i=0,a=s.current.getStartPositionOfChar(0);t>o;){a.x=o;var c=s.current.getCharNumAtPosition(a),l=n.lastIndexOf(" ",c);if(l<i)break;r.push(n.slice(i,l+1)),i=l+1,o=s.current.getEndPositionOfChar(l+1).x+e}r.push(n.slice(i)),f(r)}}),[s,n,e]),n?Dt.createElement("tspan",{ref:s,dy:r,style:a,x:o,className:c},u.length>1?u.map((function(t,e){return Dt.createElement("tspan",{key:t,x:0,dy:e>0?"1.2em":r},t)})):n):null})),lr=Dt.memo((function(t){var e=t.width,n=t.descriptionWidth,r=void 0===n?e:n,o=t.style;return o.title||o.description?Dt.createElement("text",null,Dt.createElement(sr,{text:o.title,width:e,dy:"10px",className:Vn("titleTextStyle-".concat(o.id),o.classNames.title),style:o.styles.title}),Dt.createElement(sr,{x:0,width:r,dy:o.title?"2em":"10px",text:o.description,className:Vn("descTextStyle-".concat(o.id),o.classNames.description),style:o.styles.description})):null}));function ur(){}function fr(t){return t?function(e,n){return function(r){return t.call(this,e,r.nativeEvent,n.map((function(t){return t.createOnHandlerData?t.createOnHandlerData(e):null})))}}:ur}function dr(t,e){var n=0,r=0;return function(o){var i=0;return"before"===o.position?i=-(n+=o.size+e):(i=t+r+e,r+=o.size+e),i}}function hr(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fill";return e?t?Object.assign(o({},n,e),t):e?o({},n,e):void 0:t}var pr=Dt.memo((function(t){var e=t.size,n=t.style,r=t.data,o=dr(e.sets.w+e.labels.w+e.cs.w,e.sets.addonPadding),i=dr(e.cs.h+e.sets.h,e.cs.addonPadding),a="auto"===n.cs.offset?r.cs.labelOffset:n.cs.offset,c="auto"===n.sets.offset?r.sets.labelOffset:n.sets.offset;return Dt.createElement("g",null,Dt.createElement(lr,{style:n,width:e.cs.x-a-20}),e.cs.h>0&&Dt.createElement("g",{transform:"translate(".concat(e.cs.x,",").concat(e.cs.y,")"),"data-upset":"csaxis"},Dt.createElement(cr,{scale:r.cs.y,orient:"left",size:e.cs.h,start:e.cs.h-r.cs.yAxisWidth,style:n}),Dt.createElement("line",{x1:0,x2:e.cs.w,y1:e.cs.h+1,y2:e.cs.h+1,className:"axisLine-".concat(n.id)}),Dt.createElement("text",{className:Vn("cChartTextStyle-".concat(n.id),n.classNames.chartLabel),style:n.styles.chartLabel,transform:"translate(".concat(-a,", ").concat(e.cs.h/2,")rotate(-90)")},n.cs.name),e.cs.addons.map((function(t){var e=i(t),r=Dt.createElement("text",{key:t.name,className:Vn("cChartTextStyle-".concat(n.id),n.classNames.chartLabel),style:n.styles.chartLabel,transform:"translate(".concat(-a,", ").concat(e+t.size/2,")rotate(-90)")},t.name);return t.scale?Dt.createElement(Dt.Fragment,{key:t.name},Dt.createElement(cr,{scale:t.scale,orient:"left",size:t.size,start:0,style:n,transform:"translate(0,".concat(e,")")}),r):r}))),e.sets.w>0&&Dt.createElement("g",{transform:"translate(".concat(e.sets.x,",").concat(e.sets.y,")"),"data-upset":"setaxis"},Dt.createElement(cr,{scale:r.sets.x,orient:"bottom",size:e.sets.w,start:e.sets.w-r.sets.xAxisWidth,transform:"translate(0, ".concat(e.sets.h,")"),style:n}),Dt.createElement("text",{className:Vn("sChartTextStyle-".concat(n.id),n.classNames.chartLabel),style:n.styles.chartLabel,transform:"translate(".concat(e.sets.w/2,", ").concat(e.sets.h+c,")")},n.sets.name),e.sets.addons.map((function(t){var r=o(t),i=Dt.createElement("text",{key:t.name,className:Vn("sChartTextStyle-".concat(n.id),n.classNames.chartLabel),style:n.styles.chartLabel,transform:"translate(".concat(r+t.size/2,", ").concat(e.sets.h+c,")")},t.name);return t.scale?Dt.createElement(Dt.Fragment,{key:t.name},Dt.createElement(cr,{scale:t.scale,orient:"bottom",size:t.size,start:0,transform:"translate(".concat(r,", ").concat(e.sets.h,")"),style:n}),i):i}))))})),yr=Dt.memo((function(t){var e=t.cx,n=t.r,r=t.cy,o=t.name,i=t.className,a=t.style,c=t.fill;return Dt.createElement("circle",{r:n,cx:e,cy:r,className:i,style:hr(a,c)},o&&Dt.createElement("title",null,o))}));function mr(t,e,n){for(var r=[n(t)],o=0;o<gn.length&&t>e;o++)t-=e,r.push(n(t));return r}var vr=Dt.memo((function(t){var e=t.d,n=t.h,r=t.className,o=t.data,i=t.size,a=t.style,c=t.children,s=mr(e.cardinality,o.cs.max,o.cs.y),l=dr(i.cs.h+i.sets.h,i.cs.addonPadding);return Dt.createElement("g",{transform:"translate(".concat(o.cs.x(e),", 0)"),onMouseEnter:n.onMouseEnter(e,i.cs.addons),onMouseLeave:n.onMouseLeave,onClick:n.onClick(e,i.cs.addons),onContextMenu:n.onContextMenu(e,i.cs.addons),onMouseMove:n.onMouseMove(e,i.cs.addons),className:r,"data-cardinality":e.cardinality},a.tooltips&&Dt.createElement("title",null,e.name,": ",o.cs.format(e.cardinality)),Dt.createElement("rect",{y:-i.cs.before,width:o.cs.bandWidth,height:i.sets.h+i.cs.h+i.cs.before+i.cs.after,className:"hoverBar-".concat(a.id)}),i.cs.h>0&&Dt.createElement(Dt.Fragment,null,s.map((function(t,n){var r=n>0?Math.floor(o.cs.bandWidth*gn[n-1]):0;return Dt.createElement("rect",{key:n,x:r,y:t,height:i.cs.h-t,width:o.cs.bandWidth-2*r,className:Vn("fillPrimary-".concat(a.id),n<s.length-1&&"fillOverflow".concat(s.length-1-n,"-").concat(a.id),a.classNames.bar),style:hr(a.styles.bar,e.color)})})),Dt.createElement("text",{y:s[0]-a.barLabelOffset,x:o.cs.bandWidth/2,style:a.styles.barLabel,className:Vn("cBarTextStyle-".concat(a.id),a.classNames.barLabel)},o.cs.format(e.cardinality))),Dt.createElement("text",{y:-a.barLabelOffset-i.cs.before,x:o.cs.bandWidth/2,style:a.styles.barLabel,className:Vn("hoverBarTextStyle-".concat(a.id),a.classNames.barLabel)},e.name),o.sets.v.map((function(t,n){return o.cs.has(e,t)?null:Dt.createElement(yr,{key:o.sets.keys[n],r:o.r,cx:o.cs.cx,cy:o.sets.y(t)+o.sets.cy,name:a.tooltips?e.name:"",style:a.styles.dot,fill:void 0,className:Vn("fillNotMember-".concat(a.id),a.classNames.dot)})})),e.sets.size>1&&Dt.createElement("line",{x1:o.cs.cx,y1:o.sets.y(o.sets.v.find((function(t){return o.cs.has(e,t)})))+o.sets.cy-(o.r-1),x2:o.cs.cx,y2:o.sets.y(o.sets.rv.find((function(t){return o.cs.has(e,t)})))+o.sets.cy+(o.r-1),style:e.color?{stroke:e.color}:void 0,className:"upsetLine-".concat(o.id)}),o.sets.v.map((function(t,n){var r;return o.cs.has(e,t)?Dt.createElement(yr,{key:o.sets.keys[n],r:o.r,cx:o.cs.cx,cy:o.sets.y(t)+o.sets.cy,name:a.tooltips?t.name:"",style:a.styles.dot,fill:null!==(r=t.color)&&void 0!==r?r:e.color,className:Vn("fillPrimary-".concat(a.id),a.classNames.dot)}):null})),i.cs.addons.map((function(t){return Dt.createElement("g",{key:t.name,transform:"translate(0,".concat(l(t),")")},t.render({set:e,width:o.cs.bandWidth,height:t.size,theme:a.theme}))})),c)})),gr=Dt.memo((function(t){var e=t.d,n=t.i,r=t.h,o=t.className,i=t.size,a=t.data,c=t.style,s=t.children,l=mr(e.cardinality,a.sets.max,a.sets.x),u=dr(i.sets.w+i.labels.w+i.cs.w,i.sets.addonPadding),f="center"===c.setLabelAlignment?i.labels.w/2:"left"===c.setLabelAlignment?2:i.labels.w-2;return Dt.createElement("g",{transform:"translate(0, ".concat(a.sets.y(e),")"),onMouseEnter:r.onMouseEnter(e,i.sets.addons),onMouseLeave:r.onMouseLeave,onClick:r.onClick(e,i.sets.addons),onContextMenu:r.onContextMenu(e,i.sets.addons),onMouseMove:r.onMouseMove(e,i.sets.addons),className:o,"data-cardinality":e.cardinality},c.tooltips&&Dt.createElement("title",null,e.name,": ",a.sets.format(e.cardinality)),Dt.createElement("rect",{x:-i.sets.before,width:i.sets.w+i.labels.w+i.cs.w+i.sets.after,height:a.sets.bandWidth,className:"hoverBar-".concat(c.id)}),n%2==1&&Dt.createElement("rect",{x:i.sets.w,width:i.labels.w+i.cs.w+i.sets.after,height:a.sets.bandWidth,className:"fillAlternating-".concat(c.id)}),i.sets.w>0&&Dt.createElement(Dt.Fragment,null,l.map((function(t,n){var r=n>0?Math.floor(a.sets.bandWidth*gn[n-1]):0;return Dt.createElement("rect",{key:n,x:t,y:r,width:i.sets.w-t,height:a.sets.bandWidth-2*r,className:Vn("fillPrimary-".concat(c.id),n<l.length-1&&"fillOverflow".concat(l.length-1-n,"-").concat(c.id),c.classNames.bar),style:hr(c.styles.bar,e.color)})})),Dt.createElement("text",{x:l[0],dx:-c.barLabelOffset,y:a.sets.bandWidth/2,style:c.styles.barLabel,className:Vn("sBarTextStyle-".concat(c.id),c.classNames.barLabel)},a.sets.format(e.cardinality))),Dt.createElement("text",{x:i.sets.w+f,y:a.sets.bandWidth/2,className:Vn("setTextStyle-".concat(c.id),c.classNames.setLabel),style:c.styles.setLabel,clipPath:"url(#clip-".concat(i.id,")")},e.name),i.sets.addons.map((function(t){return Dt.createElement("g",{key:t.name,transform:"translate(".concat(u(t),",0)")},t.render({set:e,width:t.size,height:a.sets.bandWidth,theme:c.theme}))})),s)})),xr=Dt.memo((function(t){var e=t.data,n=t.size,r=t.style,o=t.h,i=t.setChildrenFactory,a=t.combinationChildrenFactory;return Dt.createElement("g",{className:o.hasClick?"clickAble-".concat(r.id):void 0},Dt.createElement("g",{transform:"translate(".concat(n.sets.x,",").concat(n.sets.y,")"),"data-upset":"sets"},e.sets.v.map((function(t,a){return Dt.createElement(gr,{key:e.sets.keys[a],d:t,i:a,h:o,className:o.hasClick||o.hasHover?"interactive-".concat(r.id):void 0,data:e,style:r,size:n},i&&i(t))}))),Dt.createElement("g",{transform:"translate(".concat(n.cs.x,",").concat(n.cs.y,")"),"data-upset":"cs"},e.cs.v.map((function(t,i){return Dt.createElement(vr,{key:e.cs.keys[i],d:t,h:o,className:o.hasClick||o.hasHover?"interactive-".concat(r.id):void 0,data:e,style:r,size:n},a&&a(t))}))))}));function br(t){var e=t.data,n=t.size,r=t.style,o=t.elemOverlap,i=t.secondary,a=t.tooltip,c=t.suffix,s=t.transform,l=t.empty,u=t.combinationAddons,f=e.cs.bandWidth,d=n.cs.h+n.sets.h,h=n.cs.h,p=Vn("fill".concat(c),!a&&"pnone-".concat(r.id),r.classNames.bar);return Dt.createElement("g",{transform:s,"data-upset":i?"cs-q":"cs-s"},e.cs.v.map((function(t,c){var s=e.cs.x(t),y=e.cs.keys[c];if(l&&!i)return Dt.createElement("rect",{key:y,x:s,y:h,height:0,width:f,className:p,style:hr(r.styles.bar,r.selectionColor?void 0:t.color)},a&&Dt.createElement("title",null));var m=o(t);if(0===m)return null;var v=mr(m,e.cs.max,e.cs.y),g=a&&Dt.createElement("title",null,"".concat(t.name," ∩ ").concat(a,": ").concat(m)),x=i?Dt.createElement("path",{key:y,transform:"translate(".concat(s,", ").concat(v[0],")"),d:"M0,-1 l".concat(f,",0 l0,2 l").concat(-f,",0 L-").concat(e.triangleSize,",-").concat(e.triangleSize," L-").concat(e.triangleSize,",").concat(e.triangleSize," Z"),className:p,"data-i":c,"data-cardinality":m,style:hr(void 0,r.selectionColor?void 0:t.color)},g):v.map((function(n,o){var i=o>0?Math.floor(e.cs.bandWidth*gn[o-1]):0;return Dt.createElement("rect",{key:o,x:s+i,y:n,height:h-n,width:f-2*i,"data-i":o>0?null:c,"data-cardinality":o>0?null:m,className:Vn(p,o<v.length-1&&"fillOverflow".concat(v.length-1-o,"-").concat(r.id)),style:hr(r.styles.bar,r.selectionColor?void 0:t.color)},g)})),b=dr(d,n.cs.addonPadding),_=u.map((function(e){var n=b(e),o=e.render({set:t,width:f,height:e.size,theme:r.theme});return o?Dt.createElement("g",{key:e.name,transform:"translate(".concat(s,",").concat(n,")")},o):null})).filter(Boolean);return 0===_.length?x:Dt.createElement("g",{key:y},x,_)})))}function _r(t){var e=t.data,n=t.size,r=t.style,o=t.elemOverlap,i=t.suffix,a=t.secondary,c=t.empty,s=t.tooltip,l=t.setAddons,u=t.transform,f=n.sets.w,d=n.sets.w+n.labels.w+n.cs.w,h=e.sets.bandWidth,p=Vn("fill".concat(i),!s&&" pnone-".concat(r.id),r.classNames.bar);return Dt.createElement("g",{transform:u,"data-upset":a?"sets-q":"sets-s"},e.sets.v.map((function(t,i){var u=e.sets.y(t),y=e.sets.keys[i];if(c&&!a)return Dt.createElement("rect",{key:y,x:f,y:u,width:0,height:h,className:p,style:hr(r.styles.bar,r.selectionColor?void 0:t.color)},r.tooltips&&s&&Dt.createElement("title",null));var m=o(t);if(0===m)return null;var v=mr(m,e.sets.max,e.sets.x),g=r.tooltips&&s&&Dt.createElement("title",null,"".concat(t.name," ∩ ").concat(s,": ").concat(m)),x=a?Dt.createElement("path",{key:y,transform:"translate(".concat(v[0],", ").concat(u+h,")"),d:"M1,0 l0,".concat(-h," l-2,0 l0,").concat(h," L-").concat(e.triangleSize,",").concat(e.triangleSize," L").concat(e.triangleSize,",").concat(e.triangleSize," Z"),"data-i":i,"data-cardinality":m,className:p,style:hr(void 0,r.selectionColor?void 0:t.color)},g):v.map((function(n,o){var a=o>0?Math.floor(e.sets.bandWidth*gn[o-1]):0;return Dt.createElement("rect",{key:o,"data-i":o>0?null:i,"data-cardinality":o>0?null:m,x:n,y:u+a,width:f-n,height:h-2*a,className:Vn(p,o<v.length-1&&"fillOverflow".concat(v.length-1-o,"-").concat(r.id)),style:hr(r.styles.bar,r.selectionColor?void 0:t.color)},g)})),b=dr(d,n.sets.addonPadding),_=l.map((function(e){var n=b(e),o=e.render({set:t,width:e.size,height:h,theme:r.theme});return o?Dt.createElement("g",{key:e.name,transform:"translate(".concat(n,",").concat(u,")")},o):null})).filter(Boolean);return 0===_.length?x:Dt.createElement("g",{key:y},x,_)})))}var wr=[],Sr=Dt.memo((function(t){var e=t.size,n=t.data,r=t.style,o=t.hasHover,i=t.secondary,a=t.queries,c=e.sets.addons.some((function(t){return null!=t.renderQuery}))||e.cs.addons.some((function(t){return null!=t.renderQuery})),s=ct((function(){return a.map((function(t){return Object.assign(Object.assign({},t),{overlap:Qt(t,"intersection",n.toElemKey),elemOverlap:c?Jt(t,"intersection",n.toElemKey):null})}))}),[a,c,n.toElemKey]);function l(t,e,n,r,o){return Object.assign(Object.assign({},t),{render:function(i){var a=r(i.set);return t.renderQuery?t.renderQuery(Object.assign({query:e,overlap:a,index:n,secondary:o},i)):null}})}return Dt.createElement("g",{className:o&&!i?"pnone-".concat(r.id):void 0},Dt.createElement("g",{transform:"translate(".concat(e.sets.x,",").concat(e.sets.y,")")},s.map((function(t,a){return Dt.createElement(_r,{key:t.name,data:n,size:e,style:r,elemOverlap:t.overlap,suffix:"Q".concat(a,"-").concat(n.id),secondary:i||a>0,tooltip:o&&!(i||a>0)?void 0:t.name,setAddons:0===e.sets.addons.length?wr:e.sets.addons.map((function(e,n){return l(e,t,n,t.elemOverlap,i||n>0)}))})}))),Dt.createElement("g",{transform:"translate(".concat(e.cs.x,",").concat(e.cs.y,")")},s.map((function(t,a){return Dt.createElement(br,{key:t.name,data:n,size:e,style:r,elemOverlap:t.overlap,suffix:"Q".concat(a,"-").concat(n.id),secondary:i||a>0,tooltip:o&&!(i||a>0)?void 0:t.name,combinationAddons:0===e.cs.addons.length?wr:e.cs.addons.map((function(e,n){return l(e,t,n,t.elemOverlap,i||n>0)}))})}))))}));function Er(t){var e=t.data,n=t.size,r=t.style,o=t.selection;if(!o||"set"!==o.type||!e.sets.keys.includes(e.toKey(o)))return null;var i=o;return Dt.createElement("rect",{y:e.sets.y(i),width:n.labels.w+n.cs.w+n.sets.after,height:e.sets.bandWidth,className:"selectionHint-".concat(r.id)})}function Mr(t){var e=t.data,n=t.size,r=t.style,o=t.selection,i=e.sets.bandWidth/2,a=e.cs.cx,c=e.r,s=n.sets.h+n.sets.after,l=e.cs.bandWidth;if(!o||"set"===o.type||!e.cs)return null;var u=o,f=e.cs.keys.indexOf(e.toKey(u));return f<0?null:Dt.createElement("g",{transform:"translate(".concat(n.labels.w+e.cs.x(u),", 0)"),"data-upset":"cs-ss","data-i":f},Dt.createElement("rect",{width:l,height:s,className:"selectionHint-".concat(r.id)}),u.sets.size>1&&Dt.createElement("line",{x1:a,y1:e.sets.y(e.sets.v.find((function(t){return e.cs.has(u,t)})))+i-(e.r-1),x2:a,y2:e.sets.y(e.sets.rv.find((function(t){return e.cs.has(u,t)})))+i+(e.r-1),className:"upsetSelectionLine-".concat(e.id),style:hr(void 0,r.selectionColor?void 0:u.color,"stroke")}),e.sets.v.filter((function(t){return e.cs.has(u,t)})).map((function(t){return Dt.createElement(yr,{key:e.toKey(t),r:1.1*c,cx:a,cy:e.sets.y(t)+i,name:r.tooltips?t.name:"",className:Vn("fillSelection-".concat(r.id),"pnone-".concat(r.id),r.classNames.dot),style:hr(r.styles.dot,r.selectionColor?void 0:t.color)})})))}var kr=[];function Nr(t){var e=t.size,n=t.data,r=t.style,o=t.selection,i=t.hasHover,a=r.emptySelection,c=Jn(o,n.overlapGuesser,n.toElemKey),s=Xn(o),l=e.sets.addons.some((function(t){return null!=t.renderSelection}))||e.cs.addons.some((function(t){return null!=t.renderSelection})),u=o&&"function"!=typeof o&&l?function(t,e){var n=Vt(t,e);return function(t){return n(t.elems).intersection}}(Array.isArray(o)?o:o.elems,n.toElemKey):null;function f(t){return Object.assign(Object.assign({},t),{render:function(e){var n=u?u(e.set):null;return t.renderSelection?t.renderSelection(Object.assign({selection:o,selectionColor:r.selectionColor||e.set.color||"orange",overlap:n},e)):null}})}return Dt.createElement("g",{className:i?"pnone-".concat(r.id):void 0},(o||a)&&Dt.createElement(br,{data:n,size:e,style:r,transform:"translate(".concat(e.cs.x,",").concat(e.cs.y,")"),empty:a&&!o,elemOverlap:c,suffix:"Selection-".concat(r.id),tooltip:i?void 0:s,combinationAddons:0===e.cs.addons.length?kr:e.cs.addons.map(f)}),(o||a)&&Dt.createElement(_r,{data:n,size:e,style:r,transform:"translate(".concat(e.sets.x,",").concat(e.sets.y,")"),empty:a&&!o,elemOverlap:c,suffix:"Selection-".concat(r.id),tooltip:i?void 0:s,setAddons:0===e.sets.addons.length?kr:e.sets.addons.map(f)}),Dt.createElement("g",{transform:"translate(".concat(e.labels.x,",").concat(e.labels.y,")")},$n(o)&&Dt.createElement(Er,{data:n,size:e,style:r,selection:o}),$n(o)&&Dt.createElement(Mr,{data:n,size:e,style:r,selection:o})))}function Ar(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"font-size";return t?"".concat(e,": ").concat(t,";"):""}function Or(t,e,n,r){var o=[];e.hasSelectionColor&&o.push("fill: ".concat(e.hasSelectionColor,";"));var i=null!=e.hasSelectionOpacity&&e.hasSelectionOpacity>=0;return i&&o.push("fill-opacity: ".concat(e.hasSelectionOpacity,";")),{p:Ar,root:"\n  .root-".concat(t," {\n    ").concat(Ar(n,"font-family"),"\n  }\n  "),text:"\n  .titleTextStyle-".concat(t," {\n    fill: ").concat(e.textColor,";\n    ").concat(Ar(r.title),"\n  }\n  .descTextStyle-").concat(t," {\n    fill: ").concat(e.textColor,";\n    ").concat(Ar(r.description),"\n  }\n\n  .legendTextStyle-").concat(t," {\n    fill: ").concat(e.textColor,";\n    ").concat(Ar(r.legend),"\n    text-anchor: middle;\n    dominant-baseline: hanging;\n    pointer-events: none;\n  }\n  "),hasSFill:o.join(" "),hasSStroke:o.join(" ").replace("fill:","stroke:").replace("fill-","stroke-"),fill:"\n  .fillPrimary-".concat(t," { fill: ").concat(e.color,"; fill-opacity: ").concat(e.opacity,"; }\n  .fillOverflow1-").concat(t," { fill-opacity: ").concat(e.opacity*vn[0],"; }\n  .fillOverflow2-").concat(t," { fill-opacity: ").concat(e.opacity*vn[1],"; }\n  ").concat(o.length>0?".root-".concat(t,"[data-selection] .fillPrimary-").concat(t," { ").concat(o.join(" ")," }"):"","\n  ").concat(i?"\n      .root-".concat(t,"[data-selection] .fillOverflow1-").concat(t," { fill-opacity: ").concat(e.opacity*vn[0],"; }\n      .root-").concat(t,"[data-selection] .fillOverflow2-").concat(t," { fill-opacity: ").concat(e.opacity*vn[1],"; }"):"","\n  ").concat(e.selectionColor?".fillSelection-".concat(t," { fill: ").concat(e.selectionColor,"; }"):"","\n  .fillTransparent-").concat(t," { fill: transparent; }\n\n  .selectionHint-").concat(t," {\n    fill: transparent;\n    pointer-events: none;\n    ").concat(Ar(e.selectionColor,"stroke"),"\n  }\n  .clickAble-").concat(t," {\n    cursor: pointer;\n  }\n\n  .startText-").concat(t," {\n    text-anchor: start;\n  }\n  .endText-").concat(t," {\n    text-anchor: end;\n  }\n  .pnone-").concat(t," {\n    pointer-events: none;\n  }"),export:"\n  .exportTextStyle-".concat(t," {\n    fill: ").concat(e.textColor,";\n    ").concat(Ar(r.exportLabel),"\n  }\n  .exportButtons-").concat(t," {\n    text-anchor: middle;\n  }\n  .exportButton-").concat(t," {\n    cursor: pointer;\n    opacity: 0.5;\n  }\n  .exportButton-").concat(t,":hover {\n    opacity: 1;\n  }\n  .exportButton-").concat(t," > rect {\n    fill: none;\n    stroke: ").concat(e.textColor,";\n  }\n  ")}}function Cr(t){var e=t.onClick;return ct((function(){return{hasClick:null!=e,hasHover:null!=t.onHover,onClick:fr(e),onMouseEnter:fr(t.onHover),onContextMenu:fr(t.onContextMenu),onMouseLeave:t.onHover?function(e){return t.onHover(null,e.nativeEvent,[])}:void 0,onMouseMove:fr(t.onMouseMove),reset:function(t){return e?e(null,t.nativeEvent,[]):null}}}),[e,t.onHover,t.onContextMenu,t.onMouseMove])}var Lr=Dt.forwardRef((function(t,e){var n,r=Pn(t),o=r.selection,i=void 0===o?null:o,a=r.queries,c=void 0===a?[]:a,l=r.fontSizes,u=ct((function(){return r.id?r.id:Gn((r.fontFamily,l.axisTick,l.barLabel,l.chartLabel,l.legend,l.setLabel,l.title,l.exportLabel,l.description,r.textColor,r.hoverHintColor,r.color,r.hasSelectionColor,r.selectionColor,r.notMemberColor,r.alternatingBackgroundColor,r.opacity,r.hasSelectionOpacity))}),[r.id,r.fontFamily,l.axisTick,l.barLabel,l.chartLabel,l.legend,l.setLabel,l.title,l.exportLabel,l.description,r.textColor,r.hoverHintColor,r.color,r.hasSelectionColor,r.selectionColor,r.notMemberColor,r.alternatingBackgroundColor,r.opacity,r.hasSelectionOpacity]),f=ct((function(){return function(t,e,n,r,o,i,a,c,s,l,u,f,d,h,p){return{theme:t,styles:e,classNames:n,cs:{name:r,offset:o},sets:{name:i,offset:a},emptySelection:u,id:c,barLabelOffset:s,selectionColor:l,title:f,description:d,tooltips:h,setLabelAlignment:p}}(r.theme,r.styles,r.classNames,r.combinationName,r.combinationNameAxisOffset,r.setName,r.setNameAxisOffset,u,r.barLabelOffset,r.selectionColor,r.emptySelection,r.title,r.description,r.tooltips,r.setLabelAlignment)}),[r.theme,r.styles,r.classNames,r.barLabelOffset,r.combinationName,r.combinationNameAxisOffset,r.setName,r.setNameAxisOffset,u,r.selectionColor,r.emptySelection,r.title,r.description,r.tooltips,r.setLabelAlignment]),d=ct((function(){return function(t,e,n,r,o,i,a,c,s,l,u){var f=a.reduce((function(t,e){return t+("before"===e.position?e.size+l:0)}),0),d=a.reduce((function(t,e){return t+("before"!==e.position?e.size+l:0)}),0),h=c.reduce((function(t,e){return t+("before"===e.position?e.size+l:0)}),0),p=c.reduce((function(t,e){return t+("before"!==e.position?e.size+l:0)}),0),y=e-2*n-20-p-h,m=t-2*n-f-d,v=o[0]>1?o[0]:m*o[0],g=o[1]>1?o[1]:m*o[1],x=i[0]>1?i[0]:y*i[0];return{id:s||Gn(),cs:{before:h,after:p,x:f+v+g,y:h,w:m-v-g,h:x,addons:c,addonPadding:u},labels:{x:f+v,y:h+x,w:g,h:y-x},sets:{before:f,after:d,x:f,y:h+x,w:v,h:y-x,addons:a,addonPadding:l},padding:r,legend:{x:t/2},margin:n,w:t,h:e}}(r.width,r.height,r.padding,r.barPadding,r.widthRatios,r.heightRatios,r.setAddons,r.combinationAddons,r.id,r.setAddonPadding,r.combinationAddonPadding)}),[r.width,r.height,r.padding,r.barPadding,r.widthRatios,r.heightRatios,r.setAddons,r.combinationAddons,r.id,r.setAddonPadding,r.combinationAddonPadding]),h=ct((function(){return function(t,e,n,r,o,i,a,c,l,u,f,d,h,p,y){var m,v,g,x=er(r),b="band"===(v=o)?Fe:v,_=nr(e)?e:xe(t,Object.assign({toElemKey:d},hn,e)),w=b(_.map(f),n.cs.w,n.padding),S=_.reduce((function(t,e){return Math.max(t,e.cardinality)}),0),E=null!=y?y:S,M=E>S?0:i,k=x(E,[n.cs.h,M],{orientation:"vertical",fontSizeHint:l}),N=function(t){return Math.floor(i/1.4*.7*t.length)},A=function(t){return N(k.tickFormat()(t))},O=t.reduce((function(t,e){return Math.max(t,e.cardinality)}),0),C=null!=p?p:O,L=A(C),I=A(E),j=s(u);try{for(j.s();!(g=j.n()).done;){var P=g.value;if(P.scale){var T,F=P.scale.ticks(3),z=P.scale.tickFormat(),R=s(F);try{for(R.s();!(T=R.n()).done;){var q=T.value,B="number"==typeof q?z(q):null!==(m=q.label)&&void 0!==m?m:z(q.value),H=N(B);H>I&&(I=H)}}catch(t){R.e(t)}finally{R.f()}}}}catch(t){j.e(t)}finally{j.f()}var W=C>O?0:L,U=x(C,[n.sets.w,W],{orientation:"horizontal",fontSizeHint:l}),D=t.map(f),K=b(D.slice().reverse(),n.sets.h,n.padding),V=Math.min(K.bandwidth(),w.bandwidth())/2*a,G=Math.max(2,Math.min(K.bandwidth(),w.bandwidth())/2*c);return{id:h||Gn(),r:V,triangleSize:G,sets:{v:t,keys:D,rv:t.slice().reverse(),x:U,xAxisWidth:n.sets.w-W,y:function(t){return K(f(t))},max:C,bandWidth:K.bandwidth(),cy:K.bandwidth()/2+n.cs.h,format:U.tickFormat(),labelOffset:i+9+2},cs:{v:_,keys:_.map(f),x:function(t){return w(f(t))},max:E,y:k,yAxisWidth:n.cs.h-M,cx:w.bandwidth()/2,bandWidth:w.bandwidth(),format:k.tickFormat(),has:function(t,e){var n=f(e);return Array.from(t.sets).some((function(t){return f(t)===n}))},labelOffset:I+9+6},toKey:f,toElemKey:d,overlapGuesser:je(_,Qn,f)}}(r.sets,r.combinations,d,r.numericScale,r.bandScale,r.barLabelOffset+tr(l.barLabel),r.dotPadding,r.barPadding,tr(l.axisTick),r.combinationAddons,r.toKey,r.toElemKey,r.id,r.setMaxScale,r.combinationMaxScale)}),[r.sets,r.combinations,d,r.numericScale,r.bandScale,r.barLabelOffset,l.barLabel,r.dotPadding,r.barPadding,l.axisTick,r.combinationAddons,r.toKey,r.toElemKey,r.id,r.setMaxScale,r.combinationMaxScale]),p=Or(u,r,r.fontFamily,l),y=Cr(r),m="\n  ".concat(p.root,"\n  ").concat(p.text,"\n\n  .axisTextStyle-").concat(u," {\n    fill: ").concat(r.textColor,";\n    ").concat(p.p(l.axisTick),"\n    text-anchor: middle;\n  }\n  .barTextStyle-").concat(u," {\n    fill: ").concat(r.textColor,";\n    ").concat(p.p(l.barLabel),"\n  }\n  .cBarTextStyle-").concat(u," {\n    fill: ").concat(r.textColor,";\n    ").concat(p.p(l.barLabel),"\n    text-anchor: middle;\n  }\n  .sBarTextStyle-").concat(u," {\n    fill: ").concat(r.textColor,";\n    ").concat(p.p(l.barLabel),"\n    text-anchor: end;\n    dominant-baseline: central;\n  }\n  .hoverBarTextStyle-").concat(u," {\n    ").concat(p.p(l.barLabel),"\n    fill: ").concat(r.hoverHintColor,";\n    display: none;\n    text-anchor: middle;\n  }\n  .setTextStyle-").concat(u," {\n    fill: ").concat(r.textColor,";\n    ").concat(p.p(l.setLabel),"\n    text-anchor: ").concat(function(t){var e;return null!==(e={left:"start",center:"middle",right:"end"}[t])&&void 0!==e?e:"middle"}(r.setLabelAlignment),";\n    dominant-baseline: central;\n  }\n  .cChartTextStyle-").concat(u," {\n    fill: ").concat(r.textColor,";\n    ").concat(p.p(l.chartLabel),"\n    text-anchor: middle;\n  }\n  .sChartTextStyle-").concat(u," {\n    fill: ").concat(r.textColor,";\n    ").concat(p.p(l.chartLabel),"\n    text-anchor: middle;\n    dominant-baseline: hanging;\n  }\n\n  ").concat(p.fill,"\n  .fillNotMember-").concat(u," { fill: ").concat(r.notMemberColor,"; }\n  .fillAlternating-").concat(u," { fill: ").concat(r.alternatingBackgroundColor||"transparent","; }\n\n  .axisLine-").concat(u," {\n    fill: none;\n    stroke: ").concat(r.textColor,";\n  }\n  .hoverBar-").concat(u," {\n    fill: transparent;\n  }\n\n  .interactive-").concat(u,":hover > .hoverBar-").concat(u," {\n    stroke: ").concat(r.hoverHintColor,";\n  }\n  .interactive-").concat(u,":hover > .hoverBarTextStyle-").concat(u," {\n    display: unset;\n  }\n\n  ").concat(p.export,"\n\n  .upsetLine-").concat(h.id," {\n    stroke-width: ").concat(.6*h.r,";\n    stroke: ").concat(r.color,";\n    stroke-opacity: ").concat(r.opacity,";\n  }\n  ").concat(p.hasSStroke?".root-".concat(u,"[data-selection] .upsetLine-").concat(h.id," { ").concat(p.hasSStroke," }"):"","\n\n  .upsetSelectionLine-").concat(h.id," {\n    stroke-width: ").concat(.6*h.r*1.1,";\n    ").concat(p.p(r.selectionColor,"stroke"),"\n    pointer-events: none;\n  }\n\n  ").concat(c.map((function(t,e){return".fillQ".concat(e,"-").concat(h.id," {\n    fill: ").concat(t.color,";\n  }")})).join("\n"),"\n  "),v=st((function(e){var n=e.currentTarget.closest("svg"),r=e.currentTarget.dataset.type||"png";switch(r){case"vega":!function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).title,n=Rn(t,e),r=URL.createObjectURL(new Blob([JSON.stringify(n,null,2)],{type:"application/json"}));zn(r,"".concat(n.title,".json"),t.ownerDocument),URL.revokeObjectURL(r)}(n);break;case"dump":Dn(n,t,h);break;case"share":Kn(t,h);break;case"svg":case"png":Fn(n,{type:r,toRemove:".".concat(e.currentTarget.getAttribute("class"))})}}),[h,t]),g=Xn(i);return Dt.createElement("svg",{id:r.id,className:Vn("root-".concat(u),r.className),style:r.style,width:r.width,height:r.height,ref:e,viewBox:"0 0 ".concat(r.width," ").concat(r.height),"data-theme":null!==(n=r.theme)&&void 0!==n?n:"light","data-selection":g||void 0},r.styleFactory(m),Dt.createElement("defs",null,Dt.createElement("clipPath",{id:"clip-".concat(d.id)},Dt.createElement("rect",{x:d.sets.w,y:0,width:d.labels.w,height:d.sets.h}))),r.queryLegend&&Dt.createElement(or,{queries:c,x:d.legend.x,style:f,data:h}),Dt.createElement(rr,{transform:"translate(".concat(d.w-2,",").concat(d.h-3,")"),styleId:u,exportButtons:r.exportButtons,exportChart:v}),Dt.createElement("g",{transform:"translate(".concat(r.padding,",").concat(r.padding,")"),"data-upset":"base"},r.onClick&&Dt.createElement("rect",{width:d.cs.x,height:d.sets.y,onClick:y.reset,className:"fillTransparent-".concat(u)}),Dt.createElement(pr,{size:d,style:f,data:h}),Dt.createElement(xr,{size:d,style:f,data:h,h:y,setChildrenFactory:r.setChildrenFactory,combinationChildrenFactory:r.combinationChildrenFactory}),Dt.createElement(Nr,{size:d,style:f,data:h,hasHover:y.hasHover,selection:i}),Dt.createElement(Sr,{size:d,style:f,data:h,hasHover:y.hasHover,queries:c,secondary:null!=r.onHover||null!=i})),t.children)}));function Ir(t){var e,n,r=t.rules,o=t.style,i=t.size,a=t.p,c=t.data,s=t.tRef,l=t.children,u=t.exportChart,f=t.selectionName,d=t.h;return Dt.createElement("svg",{id:a.id,className:Vn("root-".concat(o.id),a.className),style:a.style,width:a.width,height:a.height,ref:s,viewBox:"0 0 ".concat(a.width," ").concat(a.height),"data-theme":null!==(e=a.theme)&&void 0!==e?e:"light","data-selection":f||void 0},a.styleFactory(r),a.onClick&&Dt.createElement("rect",{width:i.w,height:i.h,onClick:d.reset,className:"fillTransparent-".concat(o.id)}),a.queryLegend&&Dt.createElement(or,{queries:null!==(n=a.queries)&&void 0!==n?n:[],x:i.legend.x,style:o,data:c}),Dt.createElement(rr,{transform:"translate(".concat(i.w-2,",").concat(i.h-3,")"),styleId:o.id,exportButtons:a.exportButtons,exportChart:u}),Dt.createElement("g",{transform:"translate(".concat(a.padding,",").concat(a.padding,")"),"data-upset":"base"},l),a.children)}function jr(t){var e;if(t.v>=1||t.v<=0)return null;var n=Math.round(10*t.v)/100;return Dt.createElement("defs",null,Dt.createElement("pattern",{id:t.id,width:"1",height:"0.1",patternContentUnits:"objectBoundingBox",patternTransform:"rotate(".concat(null!==(e=t.rotate)&&void 0!==e?e:0,")")},t.bgFilled&&Dt.createElement("rect",{x:"0",y:"0",width:"1",height:"0.1",style:{fill:t.bgFill},className:"fillPrimary-".concat(t.styleId)}),Dt.createElement("rect",{x:"0",y:"0",width:"1",height:n,className:"fill".concat(t.suffix),style:t.fill?{fill:t.fill}:void 0})))}function Pr(t){var e=t.slice,n=t.d,r=t.i,o=t.data,i=t.style,a=t.elemOverlap,c=t.selected,s=t.selectionName,l=t.h,u=t.queries,f=t.size,d=t.fill,h=t.qs,p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t.path?t.path:"M ".concat(t.x1-n,",").concat(t.y1-n," ").concat(t.arcs.map((function(t){var r=e[t.ref].l,o=Mn(r)?r.rx:r.r,i=Mn(r)?r.ry:r.r,a=Mn(r)?r.rotation:0;return"A ".concat(o-n," ").concat(i-n," ").concat(a," ").concat(t.large?1:0," ").concat(t.sweep?1:0," ").concat(t.x2-n," ").concat(t.y2-n)})).join(" "))}(e,o.sets.d),y=function(t,e){return t.text.x===e.cx?0:t.text.x>e.cx?t.text.y<=e.cy?60:-60:t.text.y<=e.cy?-60:60}(e,f.area),m=a?a(n):0,v=m===n.cardinality&&n.cardinality>0||c,g=Vn("arc-".concat(i.id),0===m&&!c&&"".concat(d?"fillPrimary":"arcP","-").concat(i.id),v&&"fillSelection-".concat(i.id),i.classNames.set),x="upset-".concat(i.id,"-").concat(r),b=null!=a||null!=l.onMouseLeave,_=h.map((function(t){return t(n)})),w=function(t,e,n,r,o,i,a,c){var s=a.format(t.cardinality),l=n?"".concat(t.name," ∩ ").concat(n):t.name,u=n?"".concat(a.format(e),"/").concat(s):s;if(0===o.length)return{tooltip:"".concat(l,": ").concat(u),title:"set"===t.type?Dt.createElement(Dt.Fragment,null,Dt.createElement("tspan",{dy:"-0.6em"},t.name),Dt.createElement("tspan",{x:c,dy:"1.2em"},u)):u};if(1===o.length&&!r&&!n)return{tooltip:"".concat(t.name," ∩ ").concat(i[0].name,": ").concat(a.format(o[0]),"/").concat(s),title:"set"===t.type?Dt.createElement(Dt.Fragment,null,Dt.createElement("tspan",{dy:"-0.6em"},t.name),Dt.createElement("tspan",{x:c,dy:"1.2em"},"".concat(a.format(o[0]),"/").concat(s))):"".concat(a.format(o[0]),"/").concat(s)};var f=Dt.createElement("tspan",{x:c,dy:"1.2em"},i.map((function(t,e){return Dt.createElement(Dt.Fragment,{key:t.name},Dt.createElement("tspan",{className:"fillQ".concat(e,"-").concat(a.id)},"⬤"),Dt.createElement("tspan",null," ".concat(a.format(o[e]),"/").concat(s).concat(e<i.length-1?" ":"")))})));return{tooltip:"".concat(l,": ").concat(u,"\n").concat(i.map((function(e,n){return"".concat(t.name," ∩ ").concat(e.name,": ").concat(a.format(o[n]),"/").concat(s)})).join("\n")),title:"set"===t.type?Dt.createElement(Dt.Fragment,null,Dt.createElement("tspan",{dy:"-1.2em"},t.name),Dt.createElement("tspan",{x:c,dy:"1.2em"},u),f):Dt.createElement(Dt.Fragment,null,Dt.createElement("tspan",{dy:"-0.6em"},u),f)}}(n,m,s,b,_,u,o,e.text.x),S=w.title,E=w.tooltip;return Dt.createElement("g",null,Dt.createElement(jr,{id:x,v:0===m?0:m/n.cardinality,suffix:"Selection-".concat(i.id),rotate:y,bgFill:n.color,bgFilled:null!=n.color||d,fill:i.selectionColor?void 0:n.color,styleId:i.id}),Dt.createElement("path",{onMouseEnter:l.onMouseEnter(n,[]),onMouseLeave:l.onMouseLeave,onClick:l.onClick(n,[]),onContextMenu:l.onContextMenu(n,[]),onMouseMove:l.onMouseMove(n,[]),d:p,className:g,style:hr(i.styles.set,m>0&&m<n.cardinality?"url(#".concat(x,")"):v&&i.selectionColor?void 0:n.color)},i.tooltips&&Dt.createElement("title",null,E)),Dt.createElement("text",{x:e.text.x,y:e.text.y,className:Vn("".concat("set"===n.type?"set":"value","TextStyle-").concat(i.id),"pnone-".concat(i.id),"set"===n.type?i.classNames.setLabel:i.classNames.valueLabel)},S))}function Tr(t,e,n,r){var o=e-2*n,i=t-2*n,a=Math.min(i,o)/2;return{id:r||Gn(),legend:{x:t/2},area:{w:i,h:o,cx:i/2,cy:o/2,r:a},margin:n,w:t,h:e}}function Fr(t,e,n){return st((function(r){var o=r.currentTarget.closest("svg"),i=r.currentTarget.dataset.type||"png";switch(i){case"dump":Dn(o,e,t,n);break;case"share":Kn(e,t,n);break;case"svg":case"png":Fn(o,{type:i,toRemove:".".concat(r.currentTarget.getAttribute("class"))})}}),[t,e,n])}var zr=Dt.forwardRef((function(t,e){var n=function(t){return function(t){return In({valueFormat:jn,layout:kn,setLabelOffsets:ln},t,{exportButtons:!1!==t.exportButtons&&Object.assign({},!0===t.exportButtons?{}:t.exportButtons,{vega:!1})})}(t)}(t),r=n.selection,o=void 0===r?null:r,i=n.queries,a=void 0===i?[]:i,c=n.fontSizes,s=function(t){var e=t.queries,n=void 0===e?[]:e,r=t.fontSizes,o=ct((function(){return t.id?t.id:Gn((t.fontFamily,r.valueLabel,r.legend,r.setLabel,r.title,r.exportLabel,r.description,t.textColor,t.color,t.hasSelectionColor,t.strokeColor,t.valueTextColor,t.selectionColor,t.opacity,t.hasSelectionOpacity))}),[t.id,t.fontFamily,r.valueLabel,r.legend,r.setLabel,r.title,r.exportLabel,r.description,t.textColor,t.color,t.hasSelectionColor,t.strokeColor,t.valueTextColor,t.selectionColor,t.opacity,t.hasSelectionOpacity]),i=ct((function(){return function(t,e,n,r,o,i,a,c){return{theme:t,styles:e,classNames:n,id:r,selectionColor:o,title:i,description:a,tooltips:c}}(t.theme,t.styles,t.classNames,o,t.selectionColor,t.title,t.description,t.tooltips)}),[t.theme,t.styles,t.classNames,o,t.selectionColor,t.title,t.description,t.tooltips]),a=ct((function(){return Tr(t.width,t.height,t.padding,t.id)}),[t.width,t.height,t.padding,t.id]),c=Cr(t),s=Dt.useMemo((function(){return n.map((function(e){return Qt(e,"intersection",t.toElemKey)}))}),[n,t.toElemKey]),l=Or(o,t,t.fontFamily,r);return{styleId:o,size:a,style:i,h:c,qs:s,rulesHelper:l}}(n),l=s.size,u=s.style,f=s.rulesHelper,d=ct((function(){return function(t,e,n,r,o,i,a,c,s){var l=t.length>r.maxSets?t.slice(0,r.maxSets):t,u=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{min:1},o=t.map(e),i=[];if(nr(n)){var a=new Map(n.map((function(t){return[Array.from(t.sets).map(e).sort().join("#"),t]}))),c=t.map((function(t){return{type:"set",cardinality:0,elems:[],name:t.name,s:t}}));i=xe(c,Object.assign({type:"distinctIntersection",empty:!0,order:["degree:asc","group:asc"]},r)).map((function(t){var n=Array.from(t.sets).map((function(t){return e(t.s)})).sort().join("#");return a.has(n)?a.get(n):{name:t.name,cardinality:0,degree:t.degree,elems:[],sets:new Set(Array.from(t.sets).map((function(t){return t.s}))),type:"distinctIntersection"}}))}else i=xe(t,Object.assign({type:"distinctIntersection",empty:!0,order:["degree:asc","group:asc"]},r,null!=n?n:{}));var s=i.map(e);return{cs:i,setKeys:o,csKeys:s}}(l,i,e),f=u.cs,d=u.setKeys,h=u.csKeys,p=r.compute(l,f,n.area.w,n.area.h);return{id:c||Gn(),sets:{d:p.sets.map((function(t,e){return{v:l[e],l:t,key:d[e],offset:null!=s&&e<s.length?s[e]:{x:0,y:0}}})),v:l,format:o},format:o,cs:{d:p.intersections.map((function(t,e){return{v:f[e],l:t,key:h[e]}})),v:f,has:function(t,e){var n=i(e);return Array.from(t.sets).some((function(t){return i(t)===n}))}},toKey:i,toElemKey:a,overlapGuesser:Ce(f,Qn,i)}}(n.sets,n.combinations,l,n.layout,n.valueFormat,n.toKey,n.toElemKey,n.id,n.setLabelOffsets)}),[n.sets,n.combinations,l,n.valueFormat,n.toKey,n.toElemKey,n.id,n.layout,n.setLabelOffsets]),h=null!=o&&ee(o)?n.toKey(o):null,p=null==o?null:Jn(o,d.overlapGuesser,d.toElemKey),y=Xn(o),m="\n  ".concat(f.root,"\n  ").concat(f.text,"\n\n  .valueTextStyle-").concat(u.id," {\n    fill: ").concat(n.valueTextColor,";\n    ").concat(f.p(c.valueLabel),"\n    text-anchor: middle;\n    dominant-baseline: central;\n  }\n  .setTextStyle-").concat(u.id," {\n    fill: ").concat(n.textColor,";\n    ").concat(f.p(c.setLabel),"\n    text-anchor: middle;\n  }\n\n  .topText-").concat(u.id," {\n    dominant-baseline: hanging;\n  }\n\n  .stroke-circle-").concat(u.id," {\n    fill: none;\n    stroke: ").concat(n.strokeColor,";\n  }\n\n  .arc-").concat(u.id," {\n    fill-rule: evenodd;\n  }\n  .arcP-").concat(u.id," {\n    fill: transparent;\n    fill-opacity: ").concat(n.opacity,";\n  }\n  ").concat(f.fill,"\n  ").concat(f.export,"\n\n  ").concat(f.hasSFill?".root-".concat(u.id,"[data-selection] .arcP-").concat(u.id," { ").concat(f.hasSFill," }"):"","\n\n  ").concat(a.map((function(t,e){return".fillQ".concat(e,"-").concat(d.id," {\n    fill: ").concat(t.color,";\n  }")})).join("\n"),"\n  "),v=Fr(d,n,"venn"),g=d.sets.d.reduce((function(t,e){return Math.min(t,e.l.cx-(Mn(e.l)?e.l.rx:e.l.r))}),l.area.w);return Dt.createElement(Ir,{rules:m,style:u,selectionName:y,size:l,p:n,data:d,tRef:e,h:s.h,exportChart:v},Dt.createElement(lr,{style:u,width:g}),Dt.createElement("g",{className:Vn(n.onClick&&"clickAble-".concat(u.id))},d.sets.d.map((function(t,e){return Dt.createElement("text",{key:t.key,x:t.l.text.x+t.offset.x,y:t.l.text.y+t.offset.y,onClick:s.h.onClick(d.sets.v[e],[]),onMouseEnter:s.h.onMouseEnter(d.sets.v[e],[]),onMouseLeave:s.h.onMouseLeave,onContextMenu:s.h.onContextMenu(d.sets.v[e],[]),onMouseMove:s.h.onMouseMove(d.sets.v[e],[]),className:Vn("setTextStyle-".concat(u.id),"".concat(t.l.align,"Text-").concat(u.id),"".concat(t.l.verticalAlign,"Text-").concat(u.id),u.classNames.setLabel)},u.tooltips&&Dt.createElement("title",null,d.sets.v[e].name,": ",d.format(d.sets.v[e].cardinality)),d.sets.v[e].name)}))),Dt.createElement("g",{className:Vn(n.onClick&&"clickAble-".concat(u.id))},d.cs.d.map((function(t,e){return Dt.createElement(Pr,{key:t.key,d:t.v,i:e,slice:t.l,size:l,style:u,data:d,fill:n.filled,h:s.h,selectionName:y,selected:h===t.key||Zt(o)&&d.cs.has(t.v,o),elemOverlap:p,queries:a,qs:s.qs})}))),Dt.createElement("g",null,d.sets.d.map((function(t){return Mn(t.l)?Dt.createElement("ellipse",{key:t.key,rx:t.l.rx,ry:t.l.ry,transform:"translate(".concat(t.l.cx,",").concat(t.l.cy,")rotate(").concat(t.l.rotation,")"),className:Vn("stroke-circle-".concat(u.id),u.classNames.set),style:u.styles.set}):Dt.createElement("circle",{key:t.key,cx:t.l.cx,cy:t.l.cy,r:t.l.r,className:Vn("stroke-circle-".concat(u.id),u.classNames.set),style:u.styles.set})}))))})),Rr=Dt.memo((function(t){var e=t.d,n=t.i,r=t.h,o=t.className,i=t.data,a=t.style,c=i.cs.l[n],s=i.cs.scale(e.cardinality),l=(i.cell-i.cs.bandWidth)/2;return Dt.createElement("g",{transform:"translate(".concat(c.x,", ").concat(c.y,")"),onMouseEnter:r.onMouseEnter(e,[]),onMouseLeave:r.onMouseLeave,onClick:r.onClick(e,[]),onContextMenu:r.onContextMenu(e,[]),onMouseMove:r.onMouseMove(e,[]),className:o,"data-cardinality":e.cardinality},a.tooltips&&Dt.createElement("title",null,e.name,": ",i.sets.format(e.cardinality)),Dt.createElement("rect",{width:i.cell,height:i.cell,className:"fillTransparent-".concat(a.id)}),Dt.createElement("rect",{x:l,y:s,height:i.cell-s,width:i.cs.bandWidth,className:Vn("fillPrimary-".concat(a.id),a.classNames.bar),style:hr(a.styles.bar,e.color)}),Dt.createElement("text",{y:s-a.barLabelOffset,x:i.cell/2,style:a.styles.barLabel,className:Vn("barTextStyle-".concat(a.id),a.classNames.barLabel)},i.sets.format(e.cardinality)))}));function qr(t,e,n,r){var o=t*e,i=t*n;return[r.x.map((function(e){return"M ".concat(e*t,",0 l0,").concat(o)})),r.y.map((function(e){return"M 0,".concat(e*t," l").concat(i,",0")}))].flat().join(" ")}var Br=Dt.memo((function(t){var e=t.data,n=t.style,r=t.size,o=t.h,i="auto"===n.cs.offset?e.cs.labelOffset:n.cs.offset;return Dt.createElement("g",null,Dt.createElement("g",{transform:"translate(".concat(r.w-i-2,", ").concat(r.h-e.cell-50,")")},Dt.createElement(cr,{scale:e.cs.scale,orient:"left",size:e.cell,start:e.cs.barLabelFontSize,style:n}),Dt.createElement("text",{className:Vn("cChartTextStyle-".concat(n.id),n.classNames.chartLabel),style:n.styles.chartLabel,transform:"translate(".concat(-i,", ").concat(e.cell,")rotate(-90)")},n.cs.name)),Dt.createElement("g",null,e.sets.l.map((function(t,r){var i=e.sets.v[r],a=i.name;return Dt.createElement("g",{key:a,onClick:o.onClick(i,[]),onMouseEnter:o.onMouseEnter(i,[]),onMouseLeave:o.onMouseLeave,onContextMenu:o.onContextMenu(i,[]),onMouseMove:o.onMouseMove(i,[]),className:Vn(o.hasClick&&"clickAble-".concat(n.id))},t.text.map((function(e,r){return Dt.createElement("text",{key:r,transform:"translate(".concat(e.x,",").concat(e.y,")").concat(t.hor?"":"rotate(-90)"),className:Vn("setTextStyle-".concat(n.id))},a)})))})),e.sets.l.map((function(t,r){var o=e.sets.v[r].name;return Dt.createElement(Dt.Fragment,{key:o},t.notText.map((function(e,r){return Dt.createElement("text",{key:r,transform:"translate(".concat(e.x,",").concat(e.y,")").concat(t.hor?"":"rotate(-90)"),className:Vn("setTextStyle-".concat(n.id),"not-".concat(n.id))},o)})))}))),Dt.createElement("g",{className:Vn(o.hasClick&&"clickAble-".concat(n.id))},e.cs.v.map((function(t,r){return Dt.createElement(Rr,{key:e.cs.keys[r],d:t,i:r,h:o,style:n,data:e})}))),Dt.createElement("g",{transform:"translate(".concat(e.grid.x,", ").concat(e.grid.y,")")},e.grid.levels.map((function(t,r){return Dt.createElement("path",{key:r,d:qr(e.cell,e.grid.vCells,e.grid.hCells,t),className:"gridStyle-".concat(n.id," gridStyle-").concat(n.id,"-").concat(r)})}))))}));function Hr(t){var e=t.data,n=t.style,r=t.elemOverlap,o=t.secondary,i=t.tooltip,a=t.suffix,c=t.empty,s=e.cs.bandWidth,l=(e.cell-s)/2,u=Vn("fill".concat(a),!i&&"pnone-".concat(n.id),n.classNames.bar);return Dt.createElement("g",{"data-upset":o?"cs-q":"cs-s"},e.cs.v.map((function(t,a){var f=e.cs.l[a],d=e.cs.keys[a];if(c&&!o)return Dt.createElement("rect",{key:d,x:f.x+l,y:f.y+e.cell,height:0,width:s,className:u,style:hr(n.styles.bar,n.selectionColor?void 0:t.color)},i&&Dt.createElement("title",null));var h=r(t);if(0===h)return null;var p=e.cs.scale(h),y=i&&Dt.createElement("title",null,"".concat(t.name," ∩ ").concat(i,": ").concat(h));return o?Dt.createElement("path",{key:d,transform:"translate(".concat(f.x+l,", ").concat(f.y+p,")"),d:"M0,-1 l".concat(s,",0 l0,2 l").concat(-s,",0 L-").concat(e.triangleSize,",-").concat(e.triangleSize," L-").concat(e.triangleSize,",").concat(e.triangleSize," Z"),className:u,"data-i":a,"data-cardinality":h,style:hr(void 0,n.selectionColor?void 0:t.color)},y):Dt.createElement("rect",{key:d,x:f.x+l,y:f.y+p,height:e.cell-p,"data-i":a,"data-cardinality":h,width:s,className:u,style:hr(n.styles.bar,n.selectionColor?void 0:t.color)},y)})))}var Wr=Dt.memo((function(t){var e=t.data,n=t.style,r=t.hasHover,o=t.secondary,i=t.queries,a=ct((function(){return i.map((function(t){return Object.assign(Object.assign({},t),{overlap:Qt(t,"intersection",e.toElemKey)})}))}),[i,e.toElemKey]);return Dt.createElement("g",{className:r&&!o?"pnone-".concat(n.id):void 0},a.map((function(t,i){return Dt.createElement(Hr,{key:t.name,data:e,style:n,elemOverlap:t.overlap,suffix:"Q".concat(i,"-").concat(e.id),secondary:o||i>0,tooltip:r&&!(o||i>0)?void 0:t.name})})))}));function Ur(t){var e=t.data,n=t.style,r=t.selection,o=t.hasHover,i=n.emptySelection,a=Jn(r,e.overlapGuesser,e.toElemKey),c=Xn(r);return Dt.createElement("g",{className:o?"pnone-".concat(n.id):void 0},(r||i)&&Dt.createElement(Hr,{data:e,style:n,empty:i&&!r,elemOverlap:a,suffix:"Selection-".concat(n.id),tooltip:o?void 0:c}))}function Dr(t,e){return Array(t).fill(0).map((function(t,n){return e(n)}))}function Kr(t){var e=Array(Math.pow(2,t)).fill(0);Dr(t,(function(t){for(var n=Math.pow(2,t),r=0;r<e.length;r+=n)e[r]++}));var n=Dr(Math.max(t,1),(function(){return[]}));return e.forEach((function(t,e){var r=Math.max(0,t-1);n[r].push(e)})),n[n.length-1].push(e.length),n}function Vr(t,e,n,r){var o=Gr(t.length,r),s=o.xBefore,l=o.yBefore,u=o.cell,f=o.hCells,d=o.vCells,h=o.horizontalSets,p=o.verticalSets,y=function(t,e){var n=Gr(t,e),r=n.xOffset,o=n.yOffset,i=n.cell,s=n.xBefore,l=n.yBefore,u=n.hCells,f=n.vCells,d=e.width-r,h=e.height-o;return Dr(t,(function(t){for(var n=Math.floor(t/2),p=t%2==0,y=Math.pow(2,n),m=(p?u:f)/y/2,v=p?s:l,g=[{v:!0,x:v+m*i*.5},{v:!1,x:v+m*i*1.5}],x=function(t){var e,n=m*Math.pow(2,t)*i,r=g.length-1;g.push.apply(g,(e=g.map((function(t,e){return{v:g[r-e].v,x:t.x+n}})),function(t){if(Array.isArray(t))return c(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))},b=1;b<=n;b++)x(b);var _=n%2==1,w=Math.floor(n/2),S=0;return S=_?(p?h:d)-e.labelHeight*(.5+w):(p?o:r)+e.labelHeight*(.5+w),p?{hor:!0,span:m,text:g.filter((function(t){return t.v})).map((function(t){return{x:t.x,y:S}})),notText:g.filter((function(t){return!t.v})).map((function(t){return{x:t.x,y:S}}))}:{hor:!1,span:m,text:g.filter((function(t){return t.v})).map((function(t){return{x:S,y:t.x}})),notText:g.filter((function(t){return!t.v})).map((function(t){return{x:S,y:t.x}}))}}))}(t.length,r),m=function(t,e,n,r){return t.map((function(t,o){var a=Math.floor(o/2),c=o%2==0,s=Math.pow(2,a),l=(c?e:n)/s/2;return function(e,n){var o=i(n,2),a=o[0],s=o[1];return r(e,t)?[a,s]:l>1?c?[l-1-a+l,s]:[a,l-1-s+l]:c?[a+l,s]:[a,s+l]}}))}(t,f,d,n),v=e.map((function(t){var e=m.reduceRight((function(e,n){return n(t,e)}),[0,0]),n=i(e,2),r=n[0],o=n[1];return{x:s+r*u,y:l+o*u}})),g=Kr(h),x=Kr(p);return{s:y,c:v,cell:u,grid:{x:s,y:l,hCells:f,vCells:d,levels:g.map((function(t,e){return{x:t,y:e<x.length?x[e]:[]}}))}}}function Gr(t,e){var n=Math.ceil(t/2),r=Math.floor(t/2),o=Math.pow(2,n),i=Math.pow(2,r),a=Math.floor(Math.min((e.width-e.labelHeight*r)/o,(e.height-e.labelHeight*n)/i)),c=(e.width-o*a-e.labelHeight*r)/2,s=(e.height-i*a-e.labelHeight*n)/2;return{xOffset:c,horizontalSets:n,yOffset:s,verticalSets:r,cell:a,xBefore:c+Math.ceil(r/2)*e.labelHeight,yBefore:s+Math.ceil(n/2)*e.labelHeight,hCells:o,vCells:i}}var $r=Dt.forwardRef((function(t,e){var n=function(t){return function(t){return In({numericScale:"linear",barPadding:.3,barLabelOffset:2,combinationName:"Intersection Size",combinationNameAxisOffset:"auto"},t,{exportButtons:!1!==t.exportButtons&&Object.assign({},!0===t.exportButtons?{}:t.exportButtons,{vega:!1})})}(t)}(t),r=n.queries,o=void 0===r?[]:r,i=n.fontSizes,a=n.selection,c=void 0===a?null:a,s=ct((function(){return n.id?n.id:Gn((n.fontFamily,i.axisTick,i.barLabel,i.legend,i.setLabel,i.title,i.exportLabel,i.description,n.textColor,n.color,n.hasSelectionColor,n.strokeColor,n.selectionColor,n.opacity,n.hasSelectionOpacity))}),[n.id,n.fontFamily,i.axisTick,i.barLabel,i.legend,i.setLabel,i.title,i.exportLabel,i.description,n.textColor,n.color,n.hasSelectionColor,n.strokeColor,n.selectionColor,n.opacity,n.hasSelectionOpacity]),l=ct((function(){return function(t,e,n,r,o,i,a,c,s,l,u,f){return{theme:t,styles:e,classNames:n,emptySelection:s,id:i,barLabelOffset:a,selectionColor:c,title:l,description:u,tooltips:f,cs:{name:r,offset:o}}}(n.theme,n.styles,n.classNames,n.combinationName,n.combinationNameAxisOffset,s,n.barLabelOffset,n.selectionColor,n.emptySelection,n.title,n.description,n.tooltips)}),[n.theme,n.styles,n.classNames,n.combinationName,n.combinationNameAxisOffset,s,n.barLabelOffset,n.selectionColor,n.emptySelection,n.title,n.description,n.tooltips]),u=ct((function(){return Tr(n.width,n.height,n.padding,n.id)}),[n.width,n.height,n.padding,n.id]),f=ct((function(){return function(t,e,n,r,o,i,a,c,s,l,u,f){var d=er(r),h=t.map(s),p=nr(e)?e:xe(t,Object.assign({type:"distinctIntersection"},null!=e?e:{})),y=p.map(s),m=function(t,e){var n=s(e);return Array.from(t.sets).some((function(t){return s(t)===n}))},v=Math.ceil(1.2*a),g=Vr(t,p,m,{width:n.area.w,height:n.area.h,labelHeight:v}),x=null!=f?f:p.reduce((function(t,e){return Math.max(t,e.cardinality)}),0),b=d(x,[g.cell,o],{orientation:"vertical",fontSizeHint:c}),_=Math.round(g.cell*(1-i)),w=Math.min(Math.max(2,_/2*i),5),S=function(t){return Math.floor(o/1.4*.7*b.tickFormat()(t).length)}(x);return{id:u||Gn(),grid:g.grid,sets:{keys:h,l:g.s,v:t,labelHeight:v,format:b.tickFormat()},triangleSize:w,cell:g.cell,cs:{keys:y,l:g.c,v:p,barLabelFontSize:o,has:m,scale:b,bandWidth:_,labelOffset:S+9+6},toKey:s,toElemKey:l,overlapGuesser:je(p,Qn,s)}}(n.sets,n.combinations,u,n.numericScale,n.barLabelOffset+tr(i.barLabel),n.barPadding,tr(i.setLabel),tr(i.axisTick),n.toKey,n.toElemKey,n.id,n.combinationMaxScale)}),[n.sets,n.combinations,u,n.numericScale,n.barLabelOffset,i.barLabel,n.barPadding,i.axisTick,i.setLabel,n.toKey,n.toElemKey,n.id,n.combinationMaxScale]),d=Cr(n),h=Xn(c),p=Or(s,n,n.fontFamily,i),y="\n  ".concat(p.root,"\n  ").concat(p.text,"\n\n  .axisTextStyle-").concat(s," {\n    fill: ").concat(n.textColor,";\n    ").concat(p.p(i.axisTick),"\n    text-anchor: end;\n  }\n  .barTextStyle-").concat(s," {\n    fill: ").concat(n.textColor,";\n    ").concat(p.p(i.barLabel),"\n    text-anchor: middle;\n  }\n  .setTextStyle-").concat(l.id," {\n    fill: ").concat(n.textColor,";\n    ").concat(p.p(i.setLabel),"\n    text-anchor: middle;\n    dominant-baseline: central;\n  }\n  .cChartTextStyle-").concat(s," {\n    fill: ").concat(n.textColor,";\n    ").concat(p.p(i.chartLabel),"\n  }\n\n  .not-").concat(l.id," {\n    text-decoration: overline;\n  }\n\n  .axisLine-").concat(s," {\n    fill: none;\n    stroke: ").concat(n.textColor,";\n  }\n\n  .gridStyle-").concat(l.id," {\n    fill: none;\n    stroke: ").concat(n.strokeColor,";\n    stroke-linecap: round;\n  }\n  .gridStyle-").concat(l.id,"-1 {\n    stroke-width: 2;\n  }\n  .gridStyle-").concat(l.id,"-2 {\n    stroke-width: 3;\n  }\n\n  ").concat(p.fill,"\n  ").concat(p.export,"\n\n  ").concat(o.map((function(t,e){return".fillQ".concat(e,"-").concat(f.id," {\n    fill: ").concat(t.color,";\n  }")})).join("\n"),"\n  "),m=Fr(f,n,"kmap"),v=f.sets.l.reduce((function(t,e){return Math.min(t,e.text[0].x-f.sets.labelHeight)}),u.area.w);return Dt.createElement(Ir,{rules:y,style:l,size:u,p:n,data:f,tRef:e,selectionName:h,h:d,exportChart:m},Dt.createElement(lr,{style:l,width:v}),Dt.createElement(Br,{style:l,data:f,h:d,size:u}),Dt.createElement(Ur,{style:l,data:f,hasHover:d.hasHover,selection:c}),Dt.createElement(Wr,{style:l,data:f,hasHover:d.hasHover,queries:o,secondary:d.hasHover||null!=c}))})),Yr=1/180*Math.PI;function Qr(t,e,n,r){return{x:t+Math.cos(r*Yr)*n,y:e+Math.sin(r*Yr)*n}}Object.freeze({__proto__:null,widthRatios:function(t){return null==t||Array.isArray(t)&&t.length>=2&&t.every((function(t){return"number"==typeof t}))},heightRatios:function(t){return null==t||Array.isArray(t)&&t.length>=1&&t.every((function(t){return"number"==typeof t}))},setLabelAlignment:function(t){return null==t||"left"===t||"center"===t||"right"===t},sets:function(t){return Array.isArray(t)&&t.every(Zt)},combinations:function(t){return null==t||Array.isArray(t)&&t.every(te)||function(t){var e=t;return null!=t&&(null==e.type||["intersection","union"].includes(e.type))}(t)},selection:function(t){return null==t||Array.isArray(t)||ee(t)},onHover:function(t){return null==t||"function"==typeof t},onClick:function(t){return null==t||"function"==typeof t},onContextMenu:function(t){return null==t||"function"==typeof t},onMouseMove:function(t){return null==t||"function"==typeof t},queries:function(t){return!t||Array.isArray(t)&&t.every(ne)},stringOrFalse:function(t){return null==t||"string"==typeof t||!1===t},setLabelOffsets:function(t){return null==t||Array.isArray(t)&&t.every((function(t){return null}))},theme:function(t){return null==t||"light"===t||"dark"===t||"vega"===t},classNames:function(t){return null==t||Object.keys(t).every((function(e){return yn.includes(e)&&"string"==typeof t[e]}))},fontSizes:function(t){return null==t||Object.keys(t).every((function(e){return pn.includes(e)&&"string"==typeof t[e]}))},numericScale:function(t){return null==t||"linear"===t||"log"===t||"function"==typeof t},bandScale:function(t){return null==t||"band"===t||"function"==typeof t},axisOffset:function(t){return null==t||"auto"===t||"number"==typeof t},style:function(t){return null==t||"object"===r(t)},styles:function(t){return null==t||Object.keys(t).every((function(t){return yn.includes(t)}))},exportButtons:function(t){return null==t||"boolean"==typeof t||Object.keys(t).every((function(e){return mn.includes(e)&&"boolean"==typeof t[e]}))}});var Jr=Math.sqrt(2*Math.PI);function Xr(t){return Math.exp(-.5*t*t)/Jr}function Zr(t){var e=t.items.length,n=function(t,e,n){var r=Math.sqrt(function(t,e){return t*e/(e-1)}(e,n));return"number"==typeof t&&(r=Math.min(r,t/1.34)),1.06*r*Math.pow(n,-.2)}(t.iqr,t.variance,e);return function(r){var o=0,i=0;for(o=0;o<e;o++)i+=Xr((r-t.items[o])/n);return i/n/e}}function to(t,e,n){var r=e-1,o=function(e){var o=e*r,i=Math.floor(o),a=o-i,c=t[i];return 0===a?c:n(c,t[Math.min(i+1,r)],a)};return{q1:o(.25),median:o(.5),q3:o(.75)}}function eo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;return to(t,e,(function(t,e,n){return t+n*(e-t)}))}function no(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,n=e,r=Math.floor((n+3)/2)/2,o=function(e){return.5*(t[Math.floor(e)-1]+t[Math.ceil(e)-1])};return{q1:o(r),median:o((n+1)/2),q3:o(n+1-r)}}function ro(t){for(var e=0,n=t.length,r=t instanceof Float64Array?new Float64Array(n):new Float32Array(n),o=0;o<n;o+=1){var i=t[o];null==i||Number.isNaN(i)||(r[e]=i,e+=1)}var a=n-e;if(0===e)return{min:Number.NaN,max:Number.NaN,missing:a,s:[]};var c=e===n?r:r.subarray(0,e);return c.sort((function(t,e){return t===e?0:t<e?-1:1})),{min:c[0],max:c[c.length-1],missing:a,s:c}}function oo(t){return 0===t.length?{min:Number.NaN,max:Number.NaN,missing:0,s:[]}:{min:t[0],max:t[t.length-1],missing:0,s:t}}function io(t,e,n,r,o){for(var i=o.eps,a=o.quantiles,c=o.coef,s=o.whiskersMode,l=function(t,e){return Math.abs(t-e)<i},u=a(t,e),f=u.median,d=u.q1,h=u.q3,p=h-d,y="number"==typeof c&&c>0,m=y?Math.max(n,d-c*p):n,v=y?Math.min(r,h+c*p):r,g=[],x=0;x<e;x+=1){var b=t[x];if(b>=m||l(b,m)){"nearest"===s&&(m=b);break}0!==g.length&&l(g[g.length-1],b)||g.push(b)}for(var _=[],w=e-1;w>=0;w-=1){var S=t[w];if(S<=v||l(S,v)){"nearest"===s&&(v=S);break}0!==_.length&&l(_[_.length-1],S)||0!==g.length&&l(g[g.length-1],S)||_.push(S)}return{median:f,q1:d,q3:h,iqr:p,outlier:g.concat(_.reverse()),whiskerHigh:v,whiskerLow:m}}function ao(t,e){for(var n=0,r=0;r<e;r++)n+=t[r];n/=e;for(var o=0,i=0;i<e;i++){var a=t[i];o+=(a-n)*(a-n)}return{mean:n,variance:o/=e}}function co(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e({coef:1.5,eps:.01,quantiles:eo,validAndSorted:!1,whiskersMode:"nearest"},n),o=r.validAndSorted?oo(t):ro(t),i=o.missing,a=o.s,c=o.min,s=o.max,l={min:Number.NaN,max:Number.NaN,mean:Number.NaN,missing:i,iqr:Number.NaN,count:t.length,whiskerHigh:Number.NaN,whiskerLow:Number.NaN,outlier:[],median:Number.NaN,q1:Number.NaN,q3:Number.NaN,variance:0,items:[],kde:function(){return 0}},u=t.length-i;if(0===u)return l;var f=e(e({min:c,max:s,count:t.length,missing:i,items:a},ao(a,u)),io(a,u,c,s,r));return e(e({},f),{},{kde:Zr(f)})}var so={hinges:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;return no(t,e)},fivenum:no,type7:eo,quantiles:eo,linear:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;return to(t,e,(function(t,e,n){return t+(e-t)*n}))},lower:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;return to(t,e,(function(t){return t}))},higher:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;return to(t,e,(function(t,e){return e}))},nearest:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;return to(t,e,(function(t,e,n){return n<.5?t:e}))},midpoint:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;return to(t,e,(function(t,e){return.5*(t+e)}))}};function lo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e,{quantiles:"function"==typeof e.quantiles||null==e.quantiles?e.quantiles:so[e.quantiles]});return null==n.quantiles&&delete n.quantiles,co(t,n)}function uo(t){var e=t[1]-t[0];return function(n){return n*e+t[0]}}function fo(t){var e=t[1]-t[0];return function(n){return(n-t[0])/e}}function ho(t){var e=["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d"],n=["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494"],r=t?e.concat(n):n.concat(e),o=0;return function(){return r[o++%r.length]}}function po(t,e){var n=new Map(t.map((function(t){return[t.value,0]})));return e.forEach((function(t){if(null!=t){var e=t.toString();n.has(e)&&n.set(e,n.get(e)+1)}})),n}function yo(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=ho(r),i=function(t){return{value:t,label:t.length>0?"".concat(t[0].toUpperCase()).concat(t.slice(1)):t,color:o()}},a=e.map((function(t){return Object.assign({count:0,acc:0,percentage:0},i("string"==typeof t?t:t.value),"string"==typeof t?{}:t)})),c=po(a,t),s=n?po(a,n):null,l=Array.from(c.values()).reduce((function(t,e){return t+e}),0),u=0;return a.forEach((function(t){t.acc=u,t.count=c.get(t.value),t.percentage=t.count/l,u+=s?s.get(t.value):t.count})),a}function mo(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function vo(t){return Math.round(100*t)/100}function go(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"horizontal",r=fo(t),o=uo(t),i=uo(e),a=function(t){return i(r(t))},c="horizontal"===n?5:7;return a.ticks=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return Array(t).fill(0).map((function(e,n){var r=o(n/(t-1));return{value:r,label:r.toLocaleString(void 0,{maximumFractionDigits:2})}}))},a.tickFormat=function(){return function(t){return t.toFixed(2)}},a}var xo=function(t){return t.toFixed(2)};function bo(t,e){return"Min: ".concat(e(t.min),", 25% Quantile: ").concat(e(t.q1),", Median: ").concat(e(t.median),", 75% Quantile: ").concat(e(t.q3),", Max: ").concat(e(t.max))}var _o=function(t){var e=t.theme,n=void 0===e?"light":e,r=t.mode,o=void 0===r?"normal":r,i=t.boxStyle,a=t.lineStyle,c=t.outlierStyle,s=t.margin,l=void 0===s?0:s,u=t.boxPadding,f=void 0===u?.1:u,d=t.outlierRadius,h=void 0===d?3:d,p=t.numberFormat,y=void 0===p?xo:p,m=mo(t,["theme","mode","boxStyle","lineStyle","outlierStyle","margin","boxPadding","outlierRadius","numberFormat"]),v=Array.isArray(t.values)?lo(t.values,m):t.values;if(Number.isNaN(v.median))return Dt.createElement("g",null);var g="vertical"!==t.orient,x=fo([t.min,t.max]),b=uo([0,g?t.width:t.height]),_=function(t){return vo(b(x(t)))},w={max:_(v.max),avg:_(v.mean),med:_(v.median),min:_(v.min),q1:_(v.q1),q3:_(v.q3),wh:_(v.whiskerHigh),wl:_(v.whiskerLow)},S=!1!==t.tooltips&&Dt.createElement("title",null,bo(v,y)),E=Cn(n).notMemberColor,M={box:Object.assign({fill:E},i),line:Object.assign({fill:"none",stroke:"light"===n?"black":"#cccccc"},a),outlier:Object.assign({fill:E},c)};if(g){var k=t.height/2,N=vo(t.height*f)+l,A=t.height-N,O="M".concat(w.wl,",").concat(l," l0,").concat(t.height-2*l," M").concat(w.wl,",").concat(k," L").concat(w.q1,",").concat(k),C="M".concat(w.q3,",").concat(k," L").concat(w.wh,",").concat(k," M").concat(w.wh,",").concat(l," L").concat(w.wh,",").concat(t.height-l),L="M".concat(w.q1,",").concat(N," L").concat(w.q3,",").concat(N," L").concat(w.q3,",").concat(A," L").concat(w.q1,",").concat(A," L").concat(w.q1,",").concat(N," M").concat(w.med,",").concat(N," l0,").concat(A-N),I=Dt.createElement("path",{d:"".concat(O," ").concat(C," ").concat(L),style:M.line});return"indicator"===o?I:Dt.createElement("g",null,S,"normal"===o&&Dt.createElement("rect",{x:w.q1,y:N,width:w.q3-w.q1,height:t.height-2*N,style:M.box}),I,v.outlier.map((function(t){return Dt.createElement("circle",{key:t,r:h,cy:k,cx:_(t),style:M.outlier},Dt.createElement("title",null,"$",y(t)))})))}var j=t.width/2,P=vo(t.width*f)+l,T=t.width-P,F="M".concat(l,",").concat(w.wl," l").concat(t.width-2*l,",0 M").concat(j,",").concat(w.wl," L").concat(j,",").concat(w.q1),z="M".concat(j,",").concat(w.q3," L").concat(j,",").concat(w.wh," M").concat(l,",").concat(w.wh," L").concat(t.width-l,",").concat(w.wh),R="M".concat(P,",").concat(w.q1," L").concat(P,",").concat(w.q3," l").concat(T-P,",0 L").concat(T,",").concat(w.q1," L").concat(P,",").concat(w.q1," M").concat(P,",").concat(w.med," l").concat(T-P,",0"),q=Dt.createElement("path",{d:"".concat(F," ").concat(z," ").concat(R),style:M.line});return"indicator"===o?q:Dt.createElement("g",null,S,"normal"===o&&Dt.createElement("rect",{y:w.q1,x:P,height:w.q3-w.q1,width:t.width-2*P,style:M.box}),q,v.outlier.map((function(t){return Dt.createElement("circle",{key:t,r:h,cx:j,cy:_(t),style:M.outlier},Dt.createElement("title",null,"$",y(t)))})))},wo=Dt.memo(_o);function So(t){return Array.isArray(t.bins)}function Eo(t){return t.map((function(t){return"".concat(t.label,": ").concat(t.count)})).join(", ")}var Mo=function(t){var e,n,r=t.margin,o=void 0===r?0:r,i=t.rectStyle,a=void 0===i?{}:i,c=So(t)?t.bins:yo(t.values,t.categories,t.base,"dark"===t.theme),s=fo([0,So(t)?t.bins.reduce((function(t,e){return t+e.count}),0):null!==(n=null===(e=t.base)||void 0===e?void 0:e.length)&&void 0!==n?n:t.values.length]),l="vertical"!==t.orient,u=uo([0,l?t.width:t.height]),f=function(t){return u(s(t))};return l?Dt.createElement("g",null,c.map((function(e){return Dt.createElement("rect",{key:e.value,x:f(e.acc),width:f(e.count),y:o,height:t.height-2*o,style:Object.assign({fill:e.color},a)},!1!==t.tooltips&&Dt.createElement("title",null,"".concat(e.label,": ").concat(e.count)))}))):Dt.createElement("g",null,c.map((function(e){return Dt.createElement("rect",{key:e.value,y:f(e.acc),height:f(e.count),x:o,width:t.width-2*o,style:Object.assign({fill:e.color},a)},!1!==t.tooltips&&Dt.createElement("title",null,"".concat(e.label,": ").concat(e.count)))})))},ko=Dt.memo(Mo),No="rgba(255,255,255,0.2)",Ao="rgba(0,0,0,0.1)";function Oo(t,e,n){return void 0===n&&(n={}),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.size,o=void 0===r?100:r,i=n.position,a=n.name,c=void 0===a?t.toString():a,s=mo(n,["size","position","name"]),l="function"==typeof t?t:function(e){return e[t]},u=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY;if(Array.isArray(e))e.forEach((function(t){var e=l(t);null==e||Number.isNaN(e)||(e<u&&(u=e),e>f&&(f=e))}));else{var d=e;u=d.min,f=d.max}var h=go([u,f],[0,o],s.orient);return{name:c,position:i,size:o,scale:h,createOnHandlerData:function(t){var e=lo(t.elems.map(l),s);return{id:"boxplot",name:c,value:Object.assign(Object.assign(Object.assign({},e),{toString:function(){var t;return bo(this,null!==(t=s.numberFormat)&&void 0!==t?t:xo)}}),e)}},render:function(t){var e=t.width,n=t.height,r=t.set,o=t.theme,i=r.elems.map(l);return Dt.createElement(wo,Object.assign({values:i,width:e,height:n,min:u,max:f,theme:o},s))},renderSelection:function(t){var e=t.width,n=t.height,r=t.overlap,o=t.selectionColor,i=t.theme;if(null==r||0===r.length)return null;var a=r.map(l);return Dt.createElement(wo,Object.assign({values:a,width:e,height:n,min:u,max:f,mode:"box",lineStyle:{stroke:o,strokeWidth:2},outlierStyle:{fill:o},theme:i},s))},renderQuery:function(t){var e=t.width,n=t.height,r=t.overlap,o=t.query,i=t.secondary,a=t.index,c=t.theme;if(null==r||0===r.length)return null;var d=r.map(l);return Dt.createElement(wo,Object.assign({values:d,width:e,height:n,min:u,max:f,mode:i?"indicator":"box",margin:i?a+2:0,lineStyle:{stroke:o.color,strokeWidth:i?1:2},outlierStyle:{fill:o.color},theme:c},s))}}}(t,e,n)}function Co(t,e,n){return void 0===n&&(n={}),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.size,o=void 0===r?100:r,i=n.position,a=n.name,c=void 0===a?t.toString():a,s=mo(n,["size","position","name"]),l="function"==typeof t?t:function(e){return e[t]},u=[];if(Array.isArray(e)){var f=new Set;e.forEach((function(t){var e=l(t);null!=e&&f.add(e.toString())})),u=Array.from(f).sort()}else u=e.categories;return{name:c,position:i,size:o,createOnHandlerData:function(t){var e=yo(t.elems.map(l),u,void 0,"dark"===s.theme);return e.toString=function(){return Eo(this)},{id:"categorical",name:c,value:e}},render:function(t){var e=t.width,n=t.height,r=t.set,o=t.theme,i=r.elems.map(l);return Dt.createElement(ko,Object.assign({values:i,categories:u,width:e,height:n,theme:o},s))},renderSelection:function(t){var e=t.width,n=t.height,r=t.set,o=t.theme,i=t.overlap,a=t.selectionColor;if(null==i||0===i.length)return null;var c=r.elems.map(l),f=i.map(l);return Dt.createElement(ko,Object.assign({values:f,base:c,categories:u,width:e,height:n,theme:o,rectStyle:{stroke:a,strokeWidth:2,fill:"light"===o?Ao:No}},s))},renderQuery:function(t){var e=t.width,n=t.height,r=t.overlap,o=t.set,i=t.query,a=t.secondary,c=t.index,f=t.theme;if(null==r||0===r.length)return null;var d=o.elems.map(l),h=r.map(l);return Dt.createElement(ko,Object.assign({values:h,base:d,categories:u,width:e,height:n,margin:a?c+2:0,rectStyle:{stroke:i.color,fill:"light"===f?Ao:No},theme:f},s))}}}(t,e,n)}function Lo(t,e){U(_(Lr,e),t)}function Io(t,e){U(_(zr,e),t)}function jo(t,e){U(_($r,e),t)}var Po=n(347);function To(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Fo(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Fo(t,e){if(t){if("string"==typeof t)return zo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zo(t,e):void 0}}function zo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ro(t,e){var n=function(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r){var o,i=To(Wo(t[n],t[r]));try{for(i.s();!(o=i.n()).done;){var a=o.value;a.parentIndex=[n,r],e.push(a)}}catch(t){i.e(t)}finally{i.f()}}return e}(t),r=n.filter((function(e){return function(t,e){return e.every((function(e){return Bo(t,e)<e.radius+1e-10}))}(e,t)})),o=0,i=0,a=[];if(r.length>1){for(var c=Uo(r),s=0;s<r.length;++s){var l=r[s];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}r.sort((function(t,e){return e.angle-t.angle}));for(var u=r[r.length-1],f=0;f<r.length;++f){var d=r[f];i+=(u.x+d.x)*(d.y-u.y);for(var h={x:(d.x+u.x)/2,y:(d.y+u.y)/2},p=null,y=0;y<d.parentIndex.length;++y)if(u.parentIndex.includes(d.parentIndex[y])){var m=t[d.parentIndex[y]],v=Math.atan2(d.x-m.x,d.y-m.y),g=Math.atan2(u.x-m.x,u.y-m.y),x=g-v;x<0&&(x+=2*Math.PI);var b=g-x/2,_=Bo(h,{x:m.x+m.radius*Math.sin(b),y:m.y+m.radius*Math.cos(b)});_>2*m.radius&&(_=2*m.radius),(null==p||p.width>_)&&(p={circle:m,width:_,p1:d,p2:u,large:_>m.radius,sweep:!0})}null!=p&&(a.push(p),o+=qo(p.circle.radius,p.width),u=d)}}else{for(var w=t[0],S=1;S<t.length;++S)t[S].radius<w.radius&&(w=t[S]);for(var E=!1,M=0;M<t.length;++M)if(Bo(t[M],w)>Math.abs(w.radius-t[M].radius)){E=!0;break}E?o=i=0:(o=w.radius*w.radius*Math.PI,a.push({circle:w,p1:{x:w.x,y:w.y+w.radius},p2:{x:w.x-1e-10,y:w.y+w.radius},width:2*w.radius,large:!0,sweep:!0}))}return i/=2,e&&(e.area=o+i,e.arcArea=o,e.polygonArea=i,e.arcs=a,e.innerPoints=r,e.intersectionPoints=n),o+i}function qo(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function Bo(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function Ho(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return qo(t,t-(n*n-e*e+t*t)/(2*n))+qo(e,r)}function Wo(t,e){var n=Bo(t,e),r=t.radius,o=e.radius;if(n>=r+o||n<=Math.abs(r-o))return[];var i=(r*r-o*o+n*n)/(2*n),a=Math.sqrt(r*r-i*i),c=t.x+i*(e.x-t.x)/n,s=t.y+i*(e.y-t.y)/n,l=-(e.y-t.y)*(a/n),u=-(e.x-t.x)*(a/n);return[{x:c+l,y:s-u},{x:c-l,y:s+u}]}function Uo(t){var e,n={x:0,y:0},r=To(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;n.x+=o.x,n.y+=o.y}}catch(t){r.e(t)}finally{r.f()}return n.x/=t.length,n.y/=t.length,n}function Do(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.maxIterations=e.maxIterations||500;for(var n=e.initialLayout||Yo,r=e.lossFunction||Xo,o=Vo(t,e),i=n(o,e),a=Object.keys(i),c=[],s=0,l=a;s<l.length;s++){var u=l[s];c.push(i[u].x),c.push(i[u].y)}for(var f=(0,Po.nelderMead)((function(t){for(var e={},n=0;n<a.length;++n){var c=a[n];e[c]={x:t[2*n],y:t[2*n+1],radius:i[c].radius}}return r(e,o)}),c,e),d=f.x,h=0;h<a.length;++h){var p=a[h];i[p].x=d[2*h],i[p].y=d[2*h+1]}return i}function Ko(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):(0,Po.bisect)((function(r){return Ho(t,e,r)-n}),0,t+e)}function Vo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.distinct,r=t.map((function(t){return Object.assign({},t)}));function o(t){return t.join(";")}if(n){var i,a=new Map,c=To(r);try{for(c.s();!(i=c.n()).done;)for(var s=i.value,l=0;l<s.sets.length;l++){var u=String(s.sets[l]);a.set(u,s.size+(a.get(u)||0));for(var f=l+1;f<s.sets.length;f++){var d=String(s.sets[f]),h="".concat(u,";").concat(d),p="".concat(d,";").concat(u);a.set(h,s.size+(a.get(h)||0)),a.set(p,s.size+(a.get(p)||0))}}}catch(t){c.e(t)}finally{c.f()}var y,m=To(r);try{for(m.s();!(y=m.n()).done;){var v=y.value;v.sets.length<3&&(v.size=a.get(o(v.sets)))}}catch(t){m.e(t)}finally{m.f()}}var g,x=[],b=new Set,_=To(r);try{for(_.s();!(g=_.n()).done;){var w=g.value;if(1===w.sets.length)x.push(w.sets[0]);else if(2===w.sets.length){var S=w.sets[0],E=w.sets[1];b.add(o(w.sets)),b.add(o([E,S]))}}}catch(t){_.e(t)}finally{_.f()}x.sort((function(t,e){return t===e?0:t<e?-1:1}));for(var M=0;M<x.length;++M)for(var k=x[M],N=M+1;N<x.length;++N){var A=x[N];b.has(o([k,A]))||r.push({sets:[k,A],size:0})}return r}function Go(t,e,n){var r=(0,Po.zerosM)(e.length,e.length),o=(0,Po.zerosM)(e.length,e.length);return t.filter((function(t){return 2===t.sets.length})).forEach((function(t){var i=n[t.sets[0]],a=n[t.sets[1]],c=Ko(Math.sqrt(e[i].size/Math.PI),Math.sqrt(e[a].size/Math.PI),t.size);r[i][a]=r[a][i]=c;var s=0;t.size+1e-10>=Math.min(e[i].size,e[a].size)?s=1:t.size<=1e-10&&(s=-1),o[i][a]=o[a][i]=s})),{distances:r,constraints:o}}function $o(t,e,n,r){for(var o=0;o<e.length;++o)e[o]=0;for(var i=0,a=0;a<n.length;++a)for(var c=t[2*a],s=t[2*a+1],l=a+1;l<n.length;++l){var u=t[2*l],f=t[2*l+1],d=n[a][l],h=r[a][l],p=(u-c)*(u-c)+(f-s)*(f-s),y=Math.sqrt(p),m=p-d*d;h>0&&y<=d||h<0&&y>=d||(i+=2*m*m,e[2*a]+=4*m*(c-u),e[2*a+1]+=4*m*(s-f),e[2*l]+=4*m*(u-c),e[2*l+1]+=4*m*(f-s))}return i}function Yo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Jo(t,e),r=e.lossFunction||Xo;if(t.length>=8){var o=Qo(t,e),i=r(o,t),a=r(n,t);i+1e-8<a&&(n=o)}return n}function Qo(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.restarts||10,o=[],i={},a=To(t);try{for(a.s();!(e=a.n()).done;){var c=e.value;1===c.sets.length&&(i[c.sets[0]]=o.length,o.push(c))}}catch(t){a.e(t)}finally{a.f()}var s=Go(t,o,i),l=s.distances,u=s.constraints,f=(0,Po.norm2)(l.map(Po.norm2))/l.length;l=l.map((function(t){return t.map((function(t){return t/f}))}));for(var d=function(t,e){return $o(t,e,l,u)},h=null,p=0;p<r;++p){var y=(0,Po.zeros)(2*l.length).map(Math.random),m=(0,Po.conjugateGradient)(d,y,n);(!h||m.fx<h.fx)&&(h=m)}for(var v=h.x,g={},x=0;x<o.length;++x){var b=o[x];g[b.sets[0]]={x:v[2*x]*f,y:v[2*x+1]*f,radius:Math.sqrt(b.size/Math.PI)}}if(n.history){var _,w=To(n.history);try{for(w.s();!(_=w.n()).done;){var S=_.value;(0,Po.scale)(S.x,f)}}catch(t){w.e(t)}finally{w.f()}}return g}function Jo(t,e){var n,r=e&&e.lossFunction?e.lossFunction:Xo,o={},i={},a=To(t);try{for(a.s();!(n=a.n()).done;){var c=n.value;if(1===c.sets.length){var s=c.sets[0];o[s]={x:1e10,y:1e10,rowid:o.length,size:c.size,radius:Math.sqrt(c.size/Math.PI)},i[s]=[]}}}catch(t){a.e(t)}finally{a.f()}t=t.filter((function(t){return 2===t.sets.length}));var l,u=To(t);try{for(u.s();!(l=u.n()).done;){var f=l.value,d=null!=f.weight?f.weight:1,h=f.sets[0],p=f.sets[1];f.size+1e-10>=Math.min(o[h].size,o[p].size)&&(d=0),i[h].push({set:p,size:f.size,weight:d}),i[p].push({set:h,size:f.size,weight:d})}}catch(t){u.e(t)}finally{u.f()}var y=[];function m(t,e){return e.size-t.size}Object.keys(i).forEach((function(t){for(var e=0,n=0;n<i[t].length;++n)e+=i[t][n].size*i[t][n].weight;y.push({set:t,size:e})})),y.sort(m);var v,g={};function x(t){return t.set in g}function b(t,e){o[e].x=t.x,o[e].y=t.y,g[e]=!0}b({x:0,y:0},y[0].set);for(var _=1;_<y.length;++_){var w=y[_].set,S=i[w].filter(x),E=o[w];if(S.sort(m),0===S.length)throw"ERROR: missing pairwise overlap information";for(var M=[],k=0;k<S.length;++k){var N=o[S[k].set],A=Ko(E.radius,N.radius,S[k].size);M.push({x:N.x+A,y:N.y}),M.push({x:N.x-A,y:N.y}),M.push({y:N.y+A,x:N.x}),M.push({y:N.y-A,x:N.x});for(var O=k+1;O<S.length;++O){var C=o[S[O].set],L=Ko(E.radius,C.radius,S[O].size),I=Wo({x:N.x,y:N.y,radius:A},{x:C.x,y:C.y,radius:L});M.push.apply(M,function(t){if(Array.isArray(t))return zo(t)}(v=I)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(v)||Fo(v)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}for(var j=1e50,P=M[0],T=0,F=M;T<F.length;T++){var z=F[T];o[w].x=z.x,o[w].y=z.y;var R=r(o,t);R<j&&(j=R,P=z)}b(P,w)}return o}function Xo(t,e){var n,r=0,o=To(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(1!==i.sets.length){var a=void 0;if(2===i.sets.length){var c=t[i.sets[0]],s=t[i.sets[1]];a=Ho(c.radius,s.radius,Bo(c,s))}else a=Ro(i.sets.map((function(e){return t[e]})));r+=(null!=i.weight?i.weight:1)*(a-i.size)*(a-i.size)}}}catch(t){o.e(t)}finally{o.f()}return r}function Zo(t,e){var n,r=0,o=To(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(1!==i.sets.length){var a=void 0;if(2===i.sets.length){var c=t[i.sets[0]],s=t[i.sets[1]];a=Ho(c.radius,s.radius,Bo(c,s))}else a=Ro(i.sets.map((function(e){return t[e]})));var l=null!=i.weight?i.weight:1,u=Math.log((a+1)/(i.size+1));r+=l*u*u}}}catch(t){o.e(t)}finally{o.f()}return r}function ti(t,e,n){if(null==n?t.sort((function(t,e){return e.radius-t.radius})):t.sort(n),t.length>0){var r,o=t[0].x,i=t[0].y,a=To(t);try{for(a.s();!(r=a.n()).done;){var c=r.value;c.x-=o,c.y-=i}}catch(t){a.e(t)}finally{a.f()}}if(2===t.length&&Bo(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){var s,l=Math.atan2(t[1].x,t[1].y)-e,u=Math.cos(l),f=Math.sin(l),d=To(t);try{for(d.s();!(s=d.n()).done;){var h=s.value,p=h.x,y=h.y;h.x=u*p-f*y,h.y=f*p+u*y}}catch(t){d.e(t)}finally{d.f()}}if(t.length>2){for(var m=Math.atan2(t[2].x,t[2].y)-e;m<0;)m+=2*Math.PI;for(;m>2*Math.PI;)m-=2*Math.PI;if(m>Math.PI){var v,g=t[1].y/(1e-10+t[1].x),x=To(t);try{for(x.s();!(v=x.n()).done;){var b=v.value,_=(b.x+g*b.y)/(1+g*g);b.x=2*_-b.x,b.y=2*_*g-b.y}}catch(t){x.e(t)}finally{x.f()}}}}function ei(t){var e=function(e){var n=t.reduce((function(t,n){return Math.max(t,n[e]+n.radius)}),Number.NEGATIVE_INFINITY),r=t.reduce((function(t,n){return Math.min(t,n[e]-n.radius)}),Number.POSITIVE_INFINITY);return{max:n,min:r}};return{xRange:e("x"),yRange:e("y")}}function ni(t,e,n){null==e&&(e=Math.PI/2);var r,o=ii(t).map((function(t){return Object.assign({},t)})),i=function(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}t.forEach((function(t){t.parent=t}));for(var n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r){var o=t[n].radius+t[r].radius;Bo(t[n],t[r])+1e-10<o&&(i=t[r],a=t[n],c=void 0,s=void 0,c=e(i),s=e(a),c.parent=s)}for(var i,a,c,s,l=new Map,u=0;u<t.length;++u){var f=e(t[u]).parent.setid;l.has(f)||l.set(f,[]),l.get(f).push(t[u])}return t.forEach((function(t){delete t.parent})),Array.from(l.values())}(o),a=To(i);try{for(a.s();!(r=a.n()).done;){var c=r.value;ti(c,e,n);var s=ei(c);c.size=(s.xRange.max-s.xRange.min)*(s.yRange.max-s.yRange.min),c.bounds=s}}catch(t){a.e(t)}finally{a.f()}i.sort((function(t,e){return e.size-t.size}));var l=(o=i[0]).bounds,u=(l.xRange.max-l.xRange.min)/50;function f(t,e,n){if(t){var r,i,a=t.bounds;if(e)r=l.xRange.max-a.xRange.min+u;else{r=l.xRange.max-a.xRange.max;var c=(a.xRange.max-a.xRange.min)/2-(l.xRange.max-l.xRange.min)/2;c<0&&(r+=c)}if(n)i=l.yRange.max-a.yRange.min+u;else{i=l.yRange.max-a.yRange.max;var s=(a.yRange.max-a.yRange.min)/2-(l.yRange.max-l.yRange.min)/2;s<0&&(i+=s)}var f,d=To(t);try{for(d.s();!(f=d.n()).done;){var h=f.value;h.x+=r,h.y+=i,o.push(h)}}catch(t){d.e(t)}finally{d.f()}}}for(var d=1;d<i.length;)f(i[d],!0,!1),f(i[d+1],!1,!0),f(i[d+2],!0,!0),d+=3,l=ei(o);return oi(o)}function ri(t,e,n,r,o){var i=ii(t);e-=2*r,n-=2*r;var a,c,s=ei(i),l=s.xRange,u=s.yRange;if(l.max===l.min||u.max===u.min)return console.log("not scaling solution: zero size detected"),t;if(o){var f=2*Math.sqrt(o/Math.PI);a=e/f,c=n/f}else a=e/(l.max-l.min),c=n/(u.max-u.min);var d=Math.min(c,a),h=(e-(l.max-l.min)*d)/2,p=(n-(u.max-u.min)*d)/2;return oi(i.map((function(t){return{radius:d*t.radius,x:r+h+(t.x-l.min)*d,y:r+p+(t.y-u.min)*d,setid:t.setid}})))}function oi(t){var e,n={},r=To(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;n[o.setid]=o}}catch(t){r.e(t)}finally{r.f()}return n}function ii(t){return Object.keys(t).map((function(e){return Object.assign(t[e],{setid:e})}))}function ai(t,e,n){for(var r=e[0].radius-Bo(e[0],t),o=1;o<e.length;++o){var i=e[o].radius-Bo(e[o],t);i<=r&&(r=i)}for(var a=0;a<n.length;++a){var c=Bo(n[a],t)-n[a].radius;c<=r&&(r=c)}return r}function ci(t,e,n){var r,o=[],i=To(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;o.push({x:a.x,y:a.y}),o.push({x:a.x+a.radius/2,y:a.y}),o.push({x:a.x-a.radius/2,y:a.y}),o.push({x:a.x,y:a.y+a.radius/2}),o.push({x:a.x,y:a.y-a.radius/2})}}catch(t){i.e(t)}finally{i.f()}for(var c=o[0],s=ai(o[0],t,e),l=1;l<o.length;++l){var u=ai(o[l],t,e);u>=s&&(c=o[l],s=u)}var f,d=(0,Po.nelderMead)((function(n){return-1*ai({x:n[0],y:n[1]},t,e)}),[c.x,c.y],{maxIterations:500,minErrorDelta:1e-10}).x,h={x:n?0:d[0],y:d[1]},p=!0,y=To(t);try{for(y.s();!(f=y.n()).done;){var m=f.value;if(Bo(h,m)>m.radius){p=!1;break}}}catch(t){y.e(t)}finally{y.f()}var v,g=To(e);try{for(g.s();!(v=g.n()).done;){var x=v.value;if(Bo(h,x)<x.radius){p=!1;break}}}catch(t){g.e(t)}finally{g.f()}if(p)return h;if(1==t.length)return{x:t[0].x,y:t[0].y};var b={};return Ro(t,b),0===b.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==b.arcs.length?{x:b.arcs[0].circle.x,y:b.arcs[0].circle.y}:e.length?ci(t,[]):Uo(b.arcs.map((function(t){return t.p1})))}function si(t,e,n){for(var r={},o=function(t){for(var e={},n=Object.keys(t),r=0,o=n;r<o.length;r++)e[o[r]]=[];for(var i=0;i<n.length;i++)for(var a=n[i],c=t[a],s=i+1;s<n.length;++s){var l=n[s],u=t[l],f=Bo(c,u);f+u.radius<=c.radius+1e-10?e[l].push(a):f+c.radius<=u.radius+1e-10&&e[a].push(l)}return e}(t),i=0;i<e.length;++i){for(var a=e[i].sets,c={},s={},l=0;l<a.length;++l){c[a[l]]=!0;for(var u=o[a[l]],f=0;f<u.length;++f)s[u[f]]=!0}var d=[],h=[];for(var p in t)p in c?d.push(t[p]):p in s||h.push(t[p]);var y=ci(d,h,n);r[a]=y,y.disjoint&&e[i].size>0&&console.log("WARNING: area "+a+" not represented on screen")}return r}function li(t){if(0===t.length)return[];var e={};return Ro(t,e),e.arcs}function ui(t,e){if(0===t.length)return"M 0 0";var n=Math.pow(10,e||0),r=null!=e?function(t){return Math.round(t*n)/n}:function(t){return t};if(1==t.length){var o=t[0].circle;return function(t,e,n){var r=[];return r.push("\nM",t,e),r.push("\nm",-n,0),r.push("\na",n,n,0,1,0,2*n,0),r.push("\na",n,n,0,1,0,2*-n,0),r.join(" ")}(r(o.x),r(o.y),r(o.radius))}var i,a=["\nM",r(t[0].p2.x),r(t[0].p2.y)],c=To(t);try{for(c.s();!(i=c.n()).done;){var s=i.value,l=r(s.circle.radius);a.push("\nA",l,l,0,s.large?1:0,s.sweep?1:0,r(s.p1.x),r(s.p1.y))}}catch(t){c.e(t)}finally{c.f()}return a.join(" ")}function fi(t){return t?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return we(t.map(be),e)}(t.map((function(t){return Array.isArray(t.elems)||(t.elems=null==t.elems?[]:[t.elems]),t}))):[]}function di(t){var e=t[0].type;return function(t,e){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="function"==typeof e?e:function(t){return t.sets},c=null!==(n="function"!=typeof e?e:i)&&void 0!==n?n:{},l=null!==(r=c.type)&&void 0!==r?r:"intersection",u=null!==(o=c.joiner)&&void 0!==o?o:fe[l],f=[],d=new Map,h=t.map((function(t){var e=a(t),n=e.map((function(t){if(d.has(t))return d.get(t);var e={cardinality:0,elems:[],name:t,type:"set"};return f.push(e),d.set(e.name,e),e}));if("distinctIntersection"===l){var r,o=s(n);try{for(o.s();!(r=o.n()).done;)r.value.cardinality+=t.cardinality}catch(t){o.e(t)}finally{o.f()}}else if(1===e.length)Object.assign(n[0],{cardinality:t.cardinality},t);else if("intersection"===l){var i,c=s(n);try{for(c.s();!(i=c.n()).done;){var h=i.value;h.cardinality=Math.max(h.cardinality,t.cardinality)}}catch(t){c.e(t)}finally{c.f()}}else if("union"===l){var p,y=s(n);try{for(y.s();!(p=y.n()).done;){var m=p.value;m.cardinality=Math.min(m.cardinality,t.cardinality)}}catch(t){y.e(t)}finally{y.f()}}var v=e.join(u);return Object.assign({type:l,elems:[],name:v},t,{cardinality:t.cardinality,degree:e.length,sets:new Set(n)})})),p=we(f,{order:c.setOrder}),y=ue(p,h,{order:c.combinationOrder});return{sets:p,combinations:y}}(t.map((function(t){return{name:t.name,setNames:Array.isArray(t.setNames)?t.setNames:null==t.setNames?[]:[t.setNames],cardinality:t.cardinality}})),(function(t){return t.setNames}),{type:e})}function hi(t,e){if(!t||Array.isArray(t)&&0===t.length)return null;if(!Array.isArray(t))return xe(e,t);var n=new Map(e.map((function(t){return[t.name,t]})));return function(t,e,n){return t.map((function(t){return function(t,e,n){var r=n(t);return Object.assign({type:e,cardinality:t.elems.length,sets:new Set(r),degree:r.length},t)}(t,"composite",n)}))}(t.map((function(t){return Array.isArray(t.elems)||(t.elems=null==t.elems?[]:[t.elems]),Array.isArray(t.setNames)||(t.setNames=null==t.setNames?[]:[t.setNames]),t})),0,(function(t){return t.setNames.map((function(t){return n.get(t)})).filter(Boolean)}))}function pi(t,e,n,r){var o=n.find((function(n){return n.name===t&&null!=e&&e===n.type}));if(o)return o;var i=Array.isArray(t)?t.slice().sort().join("&"):null;return r.find((function(n){return n.name===t||i&&i===function(t){return Array.from(t.sets).map((function(t){return t.name})).sort().join("&")}(n)&&null!=e&&e===n.type}))}function yi(t,e,n){var r=new Set(t),o=function(t){return!(!t.elems||t.elems.length!==r.size)&&t.elems.every((function(t){return r.has(t)}))};return e.find(o)||n.find(o)}var mi={maxSets:1/0,compute:function(t,e,n,r){var o,i,a,c=e.map((function(t){return{sets:Array.from(t.sets).map((function(t){return t.name})),size:t.cardinality}})),s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.lossFunction,r=e.layoutFunction,o=void 0===r?Do:r,i=e.normalize,a=void 0===i||i,c=e.orientation,s=void 0===c?Math.PI/2:c,l=e.orientationOrder,u=e.width,f=void 0===u?600:u,d=e.height,h=void 0===d?350:d,p=e.padding,y=void 0===p?15:p,m=e.scaleToFit,v=void 0!==m&&m,g=e.symmetricalTextCentre,x=void 0!==g&&g,b=e.distinct,_=e.round,w=void 0===_?2:_,S=o(t,{lossFunction:"default"!==n&&n?"logRatio"===n?Zo:n:Xo,distinct:b});a&&(S=ni(S,s,l));var E=ri(S,f,h,y,v),M=si(E,t,x),k=new Map(Object.keys(E).map((function(t){return[t,{set:t,x:E[t].x,y:E[t].y,radius:E[t].radius}]}))),N=t.map((function(t){var e=t.sets.map((function(t){return k.get(t)})),n=li(e);return{circles:e,arcs:n,path:ui(n,w),area:t,has:new Set(t.sets)}}));function A(t){var e,n="",r=To(N);try{var o=function(){var r=e.value;r.has.size>t.length&&t.every((function(t){return r.has.has(t)}))&&(n+=" "+r.path)};for(r.s();!(e=r.n()).done;)o()}catch(t){r.e(t)}finally{r.f()}return n}return N.map((function(t){var e=t.circles,n=t.arcs,r=t.path,o=t.area;return{data:o,text:M[o.sets],circles:e,arcs:n,path:r,distinctPath:r+A(o.sets)}}))}(c,Object.assign({},{width:n,height:r,distinct:!0},{})),l=s.filter((function(t){return 1===t.data.sets.length})),u=new Map(t.map((function(t,e){return[t.name,e]}))),f=l.map((function(t){return t.circles[0]})),d=(i=(o=f).reduce((function(t,e){return t+e.x}),0),a=o.reduce((function(t,e){return t+e.y}),0),{x:i/o.length,y:a/o.length}),h=function(t){return{x2:t.p1.x,y2:t.p1.y,cx:t.circle.x,cy:t.circle.y,sweep:!0,large:t.width>t.circle.radius,ref:f.findIndex((function(e){return Math.abs(e.x-t.circle.x)<.05&&Math.abs(e.y-t.circle.y)<.05})),mode:"i"}};return{sets:l.map((function(t){var e=t.circles[0],n=function(t,e){var n=t.x-e.x,r=t.y-e.y;return Math.atan2(r,n)/Yr}(e,d);return{cx:e.x,cy:e.y,r:e.radius,align:n>90?"end":"start",verticalAlign:"bottom",text:Qr(e.x,e.y,1.1*e.radius,n)}})),intersections:s.map((function(t){var e=t.arcs,n={x:t.text.x,y:t.text.y};if(0===e.length)return{sets:t.data.sets.map((function(t){return u.get(t)})),text:n,x1:0,y1:0,arcs:[]};if(1===e.length){var r=t.arcs[0].circle;return{sets:t.data.sets.map((function(t){return u.get(t)})),text:n,x1:t.arcs[0].p2.x,y1:r.y-r.radius,arcs:[h(t.arcs[0]),Object.assign(h(t.arcs[0]),{y2:r.y-r.radius})],path:t.distinctPath||t.path}}return{sets:t.data.sets.map((function(t){return u.get(t)})),text:n,x1:t.arcs[0].p2.x,y1:t.arcs[0].p2.y,arcs:t.arcs.map((function(t){return h(t)})),path:t.distinctPath||t.path}}))}}};function vi(t,e,n){if(0===n.length)return delete t.setAddons,void delete t.combinationAddons;var r=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.elems?new Map(t.elems.map((function(t,e){return[t,e]}))):e;return"number"===t.type?Oo((function(e){return r.has(e)?t.values[r.get(e)]:Number.NaN}),{min:t.domain[0],max:t.domain[1]},{name:t.name,quantiles:"hinges",orient:n?"vertical":"horizontal"}):Co((function(e){return r.has(e)?t.values[r.get(e)]:""}),{categories:t.categories},{name:t.name,orient:n?"vertical":"horizontal"})};t.setAddons=n.map((function(t){return r(t,!1)})),t.combinationAddons=n.map((function(t){return r(t,!0)}))}function gi(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r?Object.keys(e).forEach((function(n){var r=t.props,o=r[n]||[];r[n]=o.concat(e[n])})):Object.assign(t.props,e),"boolean"!=typeof e.interactive&&"string"!=typeof e.interactive||(t.interactive="boolean"==typeof e.interactive?"hover":e.interactive),"boolean"==typeof e.events_nonce&&(t.useNonce=e.events_nonce);var o=e.expressionData;if("string"==typeof e.renderMode&&(t.renderMode=e.renderMode),delete t.props.renderMode,delete t.props.interactive,delete t.props.expressionData,delete t.props.crosstalk,e.elems&&(t.elemToIndex.clear(),e.elems.forEach((function(e,n){return t.elemToIndex.set(e,n)}))),delete t.props.elems,e.attrs&&(t.attrs=e.attrs,vi(t.props,t.elemToIndex,t.attrs)),delete t.props.attrs,null!=e.sets&&(t.props.sets=fi(t.props.sets)),null!=e.combinations)if(o){var i=di(e.combinations);t.props.combinations=i.combinations,t.props.sets=i.sets}else{var a=hi(e.combinations,t.props.sets);null==a?delete t.props.combinations:t.props.combinations=a}null==e.selection||""===e.selection?t.props.selection=null:"string"==typeof e.selection||Array.isArray(e.selection)?t.props.selection=pi(e.selection,null,t.props.sets,t.props.combinations):"string"==typeof(null===(n=e.selection)||void 0===n?void 0:n.name)&&(t.props.selection=pi(e.selection.name,e.selection.type,t.props.sets,t.props.combinations)),e.queries&&(t.props.queries=e.queries.map((function(e){var n=Object.assign({},e);return Yt(e)&&("string"==typeof e.set||Array.isArray(e.set))?n.set=pi(e.set,e.type,t.props.sets,t.props.combinations):Gt(e)&&void 0!==e.elems&&!Array.isArray(e.elems)&&(n.elems=[e.elems]),n})))}function xi(){return HTMLWidgets&&HTMLWidgets.shinyMode}HTMLWidgets.widget({name:"upsetjs",type:"output",factory:function(t,e,n){var r=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{interactive:!!n&&"hover",renderMode:"upset",useNonce:!1,elemToIndex:new Map,attrs:[],props:Object.assign({sets:[],width:t,height:e},r)}}(e,n,xi(),{exportButtons:xi()}),o=null;function i(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e&&gi(r,e,n),"venn"===r.renderMode?(delete r.props.layout,Io(t,r.props)):"kmap"===r.renderMode?jo(t,r.props):"euler"===r.renderMode?(r.props.layout=mi,Io(t,r.props)):Lo(t,r.props)}var a=null;function c(e){return function(n){xi()&&Shiny.onInputChange("".concat(t.id,"_").concat(e),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Date.now():null;if(!t)return{name:null,setNames:[],cardinality:null,isSelected:null==e,type:null,elems:[],nonce:n};var r=Array.isArray(e)||"function"==typeof e?null:e;return{name:t.name,setNames:Array.isArray(t.setNames)?t.setNames:null==t.setNames?[]:[t.setNames],cardinality:t.cardinality,isSelected:r&&r.name===t.name&&r.type===t.type&&r.cardinality===t.cardinality,type:t.type,elems:t.elems||[],nonce:n}}(n,r.props.selection,r.useNonce)),o&&o.mode===e&&o&&o.trigger(null==n?void 0:n.elems),r.interactive===e&&("hover"===e?n?(a=r.props.selection,r.props.selection=n):(r.props.selection=a,a=null):r.props.selection=n,i())}}return r.props.onHover=c("hover"),r.props.onClick=c("click"),r.props.onContextMenu=c("contextMenu"),t.__update=i,{renderValue:function(t){var e,n;i(t),t.crosstalk&&window.crosstalk&&xi()&&(o?o.update(t.crosstalk):(e=t.crosstalk,(n=new crosstalk.SelectionHandle).setGroup(e.group),n.on("change",(function(t){t.sender!==n&&(r.props.selection=t.value?yi(t.value,r.props.sets,r.props.combinations)||t.value:null,i())})),r.props.selection=n.value?yi(n.value,r.props.sets,r.props.combinations)||n.value:null,i(),o={mode:e.mode,update:function(t){n.setGroup(t.group),this.mode=t.mode},trigger:function(t){t?n.set(t):n.clear()}}))},resize:function(t,e){i({width:t,height:e})}}}}),xi()&&Shiny.addCustomMessageHandler("upsetjs-update",(function(t){var e=document.getElementById(t.id),n=null==e?void 0:e.__update;"function"==typeof n&&n(t.props,t.append)}))}()}();